From f07ed3fc01180382bf5b4bcdf9c66bce8d4ad381 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sat, 3 Dec 2016 15:20:24 +0000 Subject: [PATCH] Allow CC13xxware to automatically configure RTRIM for us --- cpu/cc26xx-cc13xx/rf-core/prop-mode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu/cc26xx-cc13xx/rf-core/prop-mode.c b/cpu/cc26xx-cc13xx/rf-core/prop-mode.c index ee0696117..6c1dd6e5e 100644 --- a/cpu/cc26xx-cc13xx/rf-core/prop-mode.c +++ b/cpu/cc26xx-cc13xx/rf-core/prop-mode.c @@ -599,6 +599,9 @@ init(void) /* Initialize current read pointer to first element (used in ISR) */ rx_read_entry = rx_buf_0; + /* Let CC13xxware automatically set a correct value for RTRIM for us */ + ti_lib_rfcrtrim((rfc_radioOp_t *)&smartrf_settings_cmd_prop_radio_div_setup); + smartrf_settings_cmd_prop_rx_adv.pQueue = &rx_data_queue; smartrf_settings_cmd_prop_rx_adv.pOutput = (uint8_t *)&rx_stats;