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/02/24 15:57:14 UTC
[mynewt-nimble] branch master updated: nimble/phy/nrf: Update timings for BabbleSim
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
The following commit(s) were added to refs/heads/master by this push:
new 0eca76b nimble/phy/nrf: Update timings for BabbleSim
0eca76b is described below
commit 0eca76bbcc21a32bf813862d6d04b4d5ac83940b
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Tue Feb 22 18:02:17 2022 +0100
nimble/phy/nrf: Update timings for BabbleSim
Only 1M and 2M are supported, no need for LE Coded.
---
nimble/drivers/nrf52/src/ble_phy.c | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/nimble/drivers/nrf52/src/ble_phy.c b/nimble/drivers/nrf52/src/ble_phy.c
index 6752413..dc8ba4e 100644
--- a/nimble/drivers/nrf52/src/ble_phy.c
+++ b/nimble/drivers/nrf52/src/ble_phy.c
@@ -179,31 +179,23 @@ static const uint16_t g_ble_phy_mode_pkt_start_off[BLE_PHY_NUM_MODE] = {
#if BABBLESIM
/* delay between EVENTS_READY and start of tx */
static const uint8_t g_ble_phy_t_txdelay[BLE_PHY_NUM_MODE] = {
- [BLE_PHY_MODE_1M] = 0,
- [BLE_PHY_MODE_2M] = 3,
- [BLE_PHY_MODE_CODED_125KBPS] = 5,
- [BLE_PHY_MODE_CODED_500KBPS] = 5
+ [BLE_PHY_MODE_1M] = 1,
+ [BLE_PHY_MODE_2M] = 1,
};
/* delay between EVENTS_END and end of txd packet */
static const uint8_t g_ble_phy_t_txenddelay[BLE_PHY_NUM_MODE] = {
[BLE_PHY_MODE_1M] = 1,
- [BLE_PHY_MODE_2M] = 3,
- [BLE_PHY_MODE_CODED_125KBPS] = 9,
- [BLE_PHY_MODE_CODED_500KBPS] = 3
+ [BLE_PHY_MODE_2M] = 1,
};
/* delay between rxd access address (w/ TERM1 for coded) and EVENTS_ADDRESS */
static const uint8_t g_ble_phy_t_rxaddrdelay[BLE_PHY_NUM_MODE] = {
[BLE_PHY_MODE_1M] = 9,
- [BLE_PHY_MODE_2M] = 2,
- [BLE_PHY_MODE_CODED_125KBPS] = 17,
- [BLE_PHY_MODE_CODED_500KBPS] = 17
+ [BLE_PHY_MODE_2M] = 5,
};
/* delay between end of rxd packet and EVENTS_END */
static const uint8_t g_ble_phy_t_rxenddelay[BLE_PHY_NUM_MODE] = {
[BLE_PHY_MODE_1M] = 9,
- [BLE_PHY_MODE_2M] = 2,
- [BLE_PHY_MODE_CODED_125KBPS] = 27,
- [BLE_PHY_MODE_CODED_500KBPS] = 22
+ [BLE_PHY_MODE_2M] = 5,
};
#else
/* delay between EVENTS_READY and start of tx */