You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/10/04 22:46:51 UTC

[mynewt-nimble] 01/02: nimble/phy/nrf5x: Fix tx-tx transition timing

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 0414740226c0eaa2f812ce920dff609666a88c53
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Tue Oct 4 10:16:46 2022 +0200

    nimble/phy/nrf5x: Fix tx-tx transition timing
    
    Need to adjust start time by ramp up time.
---
 nimble/drivers/nrf5x/src/ble_phy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nimble/drivers/nrf5x/src/ble_phy.c b/nimble/drivers/nrf5x/src/ble_phy.c
index 799760df..df610c93 100644
--- a/nimble/drivers/nrf5x/src/ble_phy.c
+++ b/nimble/drivers/nrf5x/src/ble_phy.c
@@ -1097,7 +1097,8 @@ ble_phy_tx_end_isr(void)
         /* Adjust for delay between EVENT_READY and actual TX start time */
         tx_time -= g_ble_phy_t_txdelay[g_ble_phy_data.phy_cur_phy_mode];
 
-        nrf_timer_cc_set(NRF_TIMER0, 0, tx_time);
+        radio_time = tx_time - BLE_PHY_T_TXENFAST;
+        nrf_timer_cc_set(NRF_TIMER0, 0, radio_time);
         NRF_TIMER0->EVENTS_COMPARE[0] = 0;
         phy_ppi_timer0_compare0_to_radio_txen_enable();