Bayley Wang / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   FastPWM3 mbed

Revision:
193:3abadeecf908
Parent:
191:66861311bdcd
Child:
196:7172e6e28867
--- a/BREMS/BREMSConfig.cpp	Sat Feb 10 03:58:36 2018 +0000
+++ b/BREMS/BREMSConfig.cpp	Sat Feb 10 05:35:49 2018 +0000
@@ -10,6 +10,7 @@
 #include "layout.h"
 #include "derived.h"
 #include "prefs.h"
+#include "errors.h"
 
 void BREMSConfigRegisters(IOStruct *io) {
     RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN;
@@ -98,6 +99,8 @@
     io->pc = new Serial(USBTX, USBRX);
     io->pc->baud(115200);
     
+    init_masks();
+    
     BREMSStartupMsg(read, io->pc);
         
     io->pref = new PreferenceWriter(6);