keystate.c

 
====================[ 构建 | DEMO.elf | Debug ]=================================== /Users/mac/Applications/CLion.app/Contents/bin/cmake/mac/aarch64/bin/cmake --build /Users/mac/Desktop/NewFolder/DEMO/cmake-build-debug --target DEMO.elf -- -j 6 [ 8%] Building C object CMakeFiles/DEMO.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c.obj [ 13%] Building C object CMakeFiles/DEMO.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c.obj [ 8%] Building C object CMakeFiles/DEMO.elf.dir/Core/Src/main.c.obj [ 21%] Building C object CMakeFiles/DEMO.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c.obj [ 21%] Building C object CMakeFiles/DEMO.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c.obj [ 26%] Building C object CMakeFiles/DEMO.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c.obj /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:99:3: error: redeclaration of enumerator 'IDLE' 99 | IDLE, | ^~~~ In file included from /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:20: /Users/mac/Desktop/NewFolder/DEMO/Core/Inc/main.h:35:5: note: previous definition of 'IDLE' with type 'enum <anonymous>' 35 | IDLE, | ^~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:100:3: error: redeclaration of enumerator 'DELAY_3S' 100 | DELAY_3S, | ^~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Inc/main.h:36:5: note: previous definition of 'DELAY_3S' with type 'enum <anonymous>' 36 | DELAY_3S, | ^~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:101:3: error: redeclaration of enumerator 'DELAY_20MS' 101 | DELAY_20MS, | ^~~~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Inc/main.h:37:5: note: previous definition of 'DELAY_20MS' with type 'enum <anonymous>' 37 | DELAY_20MS, | ^~~~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:103:3: error: conflicting types for 'KeyState'; have 'enum <anonymous>' 103 | } KeyState; | ^~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Inc/main.h:39:5: note: previous declaration of 'KeyState' with type 'KeyState' 39 | } KeyState; | ^~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c: In function 'ProcessKeyState': /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:167:25: error: 'DELAY_DH' undeclared (first use in this function); did you mean 'DELAY_3S'? 167 | keyCtrl.state = DELAY_DH; | ^~~~~~~~ | DELAY_3S /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:167:25: note: each undeclared identifier is reported only once for each function it appears in /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:175:25: error: 'TURN_OFF' undeclared (first use in this function) 175 | keyCtrl.state = TURN_OFF; | ^~~~~~~~ /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:187:10: error: 'MEASURE_IN1' undeclared (first use in this function) 187 | case MEASURE_IN1: | ^~~~~~~~~~~ [ 30%] Building C object CMakeFiles/DEMO.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c.obj /Users/mac/Desktop/NewFolder/DEMO/Core/Src/main.c:190:25: error: 'MEASURE_IN2' undeclared (first use in this function) 190 | keyCtrl.state = MEASURE_IN2; | ^~~~~~~~~~~ make[3]: *** [CMakeFiles/DEMO.elf.dir/Core/Src/main.c.obj] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/DEMO.elf.dir/all] Error 2 make[1]: *** [CMakeFiles/DEMO.elf.dir/rule] Error 2 make: *** [DEMO.elf] Error 2
03-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值