You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/01/17 15:58:53 UTC

[GitHub] andrzej-kaczmarek commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

andrzej-kaczmarek commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162085415
 
 

 ##########
 File path: hw/drivers/nimble/nrf52/src/ble_phy.c
 ##########
 @@ -1824,6 +1833,28 @@ ble_phy_resolv_list_disable(void)
 }
 #endif
 
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+void ble_phy_enable_dtm(void)
+{
+    /* Disable whitening */
+    NRF_RADIO->PCNF1 = NRF_MAXLEN |
+                       (RADIO_PCNF1_ENDIAN_Little <<  RADIO_PCNF1_ENDIAN_Pos) |
+                       (NRF_BALEN << RADIO_PCNF1_BALEN_Pos);
 
 Review comment:
   we'll now have PCNF1 set in 3 different places in code now - these will need to be keep in sync, so probably it's better just toggle single bit: NRF_RADIO->PCNF1 &= ~RADIO_PCNF1_WHITEEN_Msk;

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services