|
@@ -171,6 +171,7 @@ bool mc_throttle_released(void) {
|
|
|
|
|
|
|
|
|
|
|
|
|
void MC_Brake_IRQHandler(void) {
|
|
void MC_Brake_IRQHandler(void) {
|
|
|
|
|
+#ifdef GPIO_BRAKE_IN_GROUP
|
|
|
int count = 50;
|
|
int count = 50;
|
|
|
int settimes = 0;
|
|
int settimes = 0;
|
|
|
while(count-- >= 0) {
|
|
while(count-- >= 0) {
|
|
@@ -188,6 +189,7 @@ void MC_Brake_IRQHandler(void) {
|
|
|
//有干扰,do nothing
|
|
//有干扰,do nothing
|
|
|
motor.n_brake_errors++;
|
|
motor.n_brake_errors++;
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|