123

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
50:9d762c5d05c3
Parent:
37:c0f352d6e8e3
--- a/hw_setup.cpp	Thu Jan 09 01:42:00 2020 +0000
+++ b/hw_setup.cpp	Mon Mar 29 07:08:14 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);