소스 검색

解决gd32 demo的编译错误

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 3 년 전
부모
커밋
291119e50c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Applications/foc/motor/motor.c

+ 2 - 0
Applications/foc/motor/motor.c

@@ -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
 }
 }