编译时指示一个错误只是在下面标记处,怎么也找不出来啦,新手求帮助
编译提示:
Build target 'Target 1'
assembling STM32F10x.s...
compiling keyled.c...
..\HARDWARE\KEY\key.h(4): error: #40: expected an identifier
keyled.c(49): warning: #1-D: last line of file ends without a newline
compiling delay.c...
compiling sys.c...
compiling usart.c...
compiling KEY.c...
..\HARDWARE\KEY\KEY.h(4): error: #40: expected an identifier
..\HARDWARE\KEY\KEY.c(17): warning: #223-D: function "PAin" declared implicitly
..\HARDWARE\KEY\KEY.c(32): warning: #940-D: missing return statement at end of non-void function "KEY_Scan"
..\HARDWARE\KEY\KEY.c(16): warning: #550-D: variable "key_up" was set but never used
compiling LED.c...
Target not created
错误所在程序:
#ifndef __KEY_H
#define __KEY_H
#define"sys.h"
#define SW3 PAin(0)
#define SW4 PAin(1)
#define SW5 PAin(2)
#define SW6 PAin(3)
void KEY_Init(void);
u8 KEY_Scan(void);
#endif
|