nimble/dtm: Disable whitening for testing

X-Original-Commit: 1aaf512484cd6986700a35b55783a7fef7a0c976
This commit is contained in:
Łukasz Rymanowski
2018-02-05 15:37:39 +01:00
parent afbaf4b961
commit 6f786f6879
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -298,6 +298,8 @@ schedule:
rc = ble_ll_sched_dtm(sch);
assert(rc == 0);
ble_phy_enable_dtm();
g_ble_ll_dtm_ctx.active = 1;
return 0;
}
@@ -336,6 +338,8 @@ ble_ll_dtm_rx_create_ctx(uint8_t rf_channel, uint8_t phy_mode)
return 1;
}
ble_phy_enable_dtm();
return 0;
}
@@ -352,6 +356,7 @@ ble_ll_dtm_ctx_free(struct dtm_ctx * ctx)
OS_EXIT_CRITICAL(sr);
ble_phy_disable();
ble_phy_disable_dtm();
ble_ll_state_set(BLE_LL_STATE_STANDBY);
#ifdef BLE_XCVR_RFCLK
ble_ll_xcvr_rfclk_stop();
+3 -1
View File
@@ -1800,7 +1800,9 @@ ble_phy_resolv_list_disable(void)
#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
void ble_phy_enable_dtm(void)
{
/* Disable whitening as per Bluetooth v5.0 Vol 6. Part F. 4.1.1*/
/* When DTM is enabled we need to disable whitening as per
* Bluetooth v5.0 Vol 6. Part F. 4.1.1
*/
NRF_RADIO->PCNF1 &= ~RADIO_PCNF1_WHITEEN_Msk;
}