main.c(8): warning: #223-D: function "LED_GPIO_Config" declared implicitly
LED_GPIO_Config( );
main.c(11): warning: #223-D: function "LED1" declared implicitly
LED1(on);
main.c(11): error: #20: identifier "on" is undefined
LED1(on);
main.c(13): error: #20: identifier "off" is undefined
LED1(off);
main.c(15): warning: #223-D: function "LED2" declared implicitly
LED2(on);
main.c(19): warning: #223-D: function "LED3" declared implicitly
LED3(on);
main.c: 4 warnings, 2 errors
compiling led.c...
led.c(17): error: #20: identifier "GPIO_Pin3" is undefined
GPIO_SetBits (GPIOC,GPIO_Pin3 | GPIO_Pin4 |GPIO_Pin5);
led.c(17): error: #20: identifier "GPIO_Pin4" is undefined
GPIO_SetBits (GPIOC,GPIO_Pin3 | GPIO_Pin4 |GPIO_Pin5);
led.c(17): error: #20: identifier "GPIO_Pin5" is undefined
GPIO_SetBits (GPIOC,GPIO_Pin3 | GPIO_Pin4 |GPIO_Pin5);
led.c: 0 warnings, 3 errors
在编译的时候出现这样的问题,由于本人是新手,实在看不出来问题在哪里? |