From 0ff4113860f47eb3548062fbefd74f3816e971f7 Mon Sep 17 00:00:00 2001 From: lws Date: Wed, 9 Aug 2023 11:36:22 -0700 Subject: [PATCH] add trim setting to ranging radio test --- software/firmware/tests/peripherals/test_ranging_radio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/software/firmware/tests/peripherals/test_ranging_radio.c b/software/firmware/tests/peripherals/test_ranging_radio.c index 043c89b5..af00ab38 100644 --- a/software/firmware/tests/peripherals/test_ranging_radio.c +++ b/software/firmware/tests/peripherals/test_ranging_radio.c @@ -96,6 +96,7 @@ int main(void) system_enable_interrupts(true); system_read_UID(eui, EUI_LEN); ranging_radio_init(eui); + dwt_setxtaltrim(40); ranging_radio_register_callbacks(tx_callback, rx_done_callback, rx_error_callback, rx_error_callback); // Loop forever running whichever test is uncommented @@ -104,8 +105,8 @@ int main(void) //reset_test(); //regular_sleep_test(); //deep_sleep_test(); - //delayed_write_test(); - read_test(); + delayed_write_test(); + //read_test(); } // Should never reach this point