123

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
49:fcfe9f46657b
Parent:
37:c0f352d6e8e3
--- a/hw_setup.cpp	Thu Jan 09 01:42:00 2020 +0000
+++ b/hw_setup.cpp	Wed Apr 14 11:31:33 2021 +0000
@@ -13,6 +13,8 @@
 
     GPIOC->MODER |= (1 << 10);                                  // set pin 5 to be general purpose output for LED
     gpio->enable = new DigitalOut(ENABLE_PIN);
+    gpio->brake1=new DigitalIn(BRAKE1);
+    gpio->brake2=new DigitalIn(BRAKE2);
     gpio->pwm_u = new FastPWM(PIN_U);
     gpio->pwm_v = new FastPWM(PIN_V);
     gpio->pwm_w = new FastPWM(PIN_W);