nimble/phy: Fix CRC poly configuration

It works now probably because 8 MSb in CRCPOLY registers are unused
in nRF52 (for now).


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/aa387add
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/aa387add
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/aa387add

Branch: refs/heads/bluetooth5
Commit: aa387adda43fccdf0eb141b7ee2f5985624d0670
Parents: 0130858
Author: Andrzej Kaczmarek <[email protected]>
Authored: Mon May 15 17:21:58 2017 +0200
Committer: Andrzej Kaczmarek <[email protected]>
Committed: Wed May 17 11:56:17 2017 +0200

----------------------------------------------------------------------
 hw/drivers/nimble/nrf52/src/ble_phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa387add/hw/drivers/nimble/nrf52/src/ble_phy.c
----------------------------------------------------------------------
diff --git a/hw/drivers/nimble/nrf52/src/ble_phy.c 
b/hw/drivers/nimble/nrf52/src/ble_phy.c
index 773d8fb..85bcfd3 100644
--- a/hw/drivers/nimble/nrf52/src/ble_phy.c
+++ b/hw/drivers/nimble/nrf52/src/ble_phy.c
@@ -988,7 +988,7 @@ ble_phy_init(void)
     NRF_RADIO->CRCCNF = (RADIO_CRCCNF_SKIPADDR_Skip << 
RADIO_CRCCNF_SKIPADDR_Pos) | RADIO_CRCCNF_LEN_Three;
 
     /* Configure BLE poly */
-    NRF_RADIO->CRCPOLY = 0x0100065B;
+    NRF_RADIO->CRCPOLY = 0x0000065B;
 
     /* Configure IFS */
     NRF_RADIO->TIFS = BLE_LL_IFS;

Reply via email to