Skip to content

Commit

Permalink
nimble/phy/nrfx: Add support for extending T_IFS
Browse files Browse the repository at this point in the history
This allows to extend T_ifs (inter-frame spacing) by additional
microseconds to improve interoperability with peripherals that
send packets too late (eg 153us). This prolongs reception time by
additional microseconds. Defaults to 2us to improve operations with
devices already on the market.
  • Loading branch information
sjanc committed Sep 14, 2023
1 parent 492629e commit 170728f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nimble/drivers/nrf5x/src/ble_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,8 @@ ble_phy_wfr_enable(int txrx, uint8_t tx_phy_mode, uint32_t wfr_usecs)
* by waiting 1 usec more.
*/
end_time += 1;

end_time += MYNEWT_VAL(BLE_PHY_EXTENDED_TIFS);
} else {
/*
* RX shall start no later than wfr_usecs after RX enabled.
Expand Down
10 changes: 10 additions & 0 deletions nimble/drivers/nrf5x/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ syscfg.defs:
experimental: 1
value: 0

BLE_PHY_EXTENDED_TIFS:
description: >
This allows to extend T_ifs (inter-frame spacing) by additional
microseconds to improve interoperability with peripherals that
send packets too late (eg 153us). This prolongs reception time by
additional microseconds. Defaults to 2us to improve operations with
devices already on the market.
range: 0..4
value: 2

BLE_PHY_SYSVIEW:
description: >
Enable SystemView tracing module for radio driver.
Expand Down

0 comments on commit 170728f

Please sign in to comment.