高中生
最后登录1970-1-1
在线时间 小时
注册时间2016-9-24
|
楼主 |
发表于 2016-10-15 10:41:55
|
显示全部楼层
*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling main.c...
..\User\main.c(32): error: #268: declaration may not appear after executable statement in block
void Key_GPIO_Config(void);
..\User\main.c(33): warning: #174-D: expression has no effect
EY_ON;
..\User\main.c(37): error: #20: identifier "macKEY1_GPIO_PORT" is undefined
if( Key_Scan(macKEY1_GPIO_PORT,macKEY1_GPIO_PIN) == KEY_ON )
..\User\main.c(37): error: #20: identifier "macKEY1_GPIO_PIN" is undefined
if( Key_Scan(macKEY1_GPIO_PORT,macKEY1_GPIO_PIN) == KEY_ON )
..\User\main.c: 1 warning, 3 errors
compiling KEY.c...
..\User\KEY\KEY.c(10): error: #20: identifier "macKEY1_GPIO_CLK" is undefined
RCC_APB2PeriphClockCmd(macKEY1_GPIO_CLK,ENABLE);
..\User\KEY\KEY.c(12): error: #20: identifier "GPIO_InitStructure" is undefined
GPIO_InitStructure.GPIO_Pin = macKEY1_GPIO_PIN;
..\User\KEY\KEY.c(12): error: #20: identifier "macKEY1_GPIO_PIN" is undefined
GPIO_InitStructure.GPIO_Pin = macKEY1_GPIO_PIN;
..\User\KEY\KEY.c(16): error: #20: identifier "macKEY1_GPIO_PORT" is undefined
GPIO_Init(macKEY1_GPIO_PORT, &GPIO_InitStructure);
..\User\KEY\KEY.c: 0 warnings, 4 errors
".\Objects\led.axf" - 7 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03 |
|