DW1000 UWB driver based on work of Matthias Grob & Manuel Stalder - ETH Zürich - 2015

Dependencies:   BurstSPI

Revision:
17:1fb08dfef237
Parent:
15:6faab70a5b19
Child:
18:6c2ce1749d4a
diff -r 6faab70a5b19 -r 1fb08dfef237 DW1000.cpp
--- a/DW1000.cpp	Wed Nov 08 10:43:03 2017 +0000
+++ b/DW1000.cpp	Wed Nov 08 11:15:47 2017 +0000
@@ -1,5 +1,4 @@
 #include "DW1000.h"
-#include "main.h"
 #define SPIRATE_PLL (10*1000*1000)
 #define SPIRATE_OSC (1*1000*1000)
 
@@ -32,7 +31,7 @@
         wait_ms(1);
         writeRegister32(DW1000_TX_POWER,0,0x1f1f1f1f);
         wait_ms(1);
-        uint32_t config = rangingSystem.readRegister32(DW1000_SYS_CFG,0);
+        uint32_t config = readRegister32(DW1000_SYS_CFG,0);
         config |= 1<<18;
         writeRegister32(DW1000_SYS_CFG,0,config);
         wait_ms(1);