#define LCD_SCL=1 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_2, 1)
#define LCD_SCL=0 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_2, 0)
#define LCD_SDA=1 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_3, 1)
#define LCD_SDA=0 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_3, 0)
#define LCD_RST=1 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_4, 1)
#define LCD_RST=1 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_4, 0)
#define LCD_DC=1 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_5, 1)
#define LCD_DC=1 GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_5, 0)
在CCS里实现上面的宏定义,结果这些句子出现错误
"D:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../OLED.C'
'Invoking: ARM Compiler'
"D:/ti/ccsv6/tools/compiler/arm_5.1.5/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 -g --include_path="D:/ti/ccsv6/tools/compiler/arm_5.1.5/include" --include_path="C:/Users/Administrator.LHRGAADOH9FYRD6/workspace_v6_0/LM4F120" --include_path="D:/ti/ccsv6/tools/compiler/arm_5.1.5/lib" --include_path="D:/ti/TivaWare_C_Series-2.1.0.12573/examples/boards/dk-tm4c123g" --include_path="D:/ti/TivaWare_C_Series-2.1.0.12573" --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PGE --define=TARGET_IS_TM4C123_RB1 --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="OLED.pp" "../OLED.C"
"../OLED.C", line 58: warning #1921-D: white space is required between the macro name "LCD_SCL" and its replacement text
"../OLED.C", line 59: warning #1921-D: white space is required between the macro name "LCD_SCL" and its replacement text
"../OLED.C", line 59: warning #48-D: incompatible redefinition of macro "LCD_SCL" (declared at line 58)
"../OLED.C", line 60: warning #1921-D: white space is required between the macro name "LCD_SDA" and its replacement text
"../OLED.C", line 61: warning #1921-D: white space is required between the macro name "LCD_SDA" and its replacement text
"../OLED.C", line 61: warning #48-D: incompatible redefinition of macro "LCD_SDA" (declared at line 60)
"../OLED.C", line 62: warning #1921-D: white space is required between the macro name "LCD_RST" and its replacement text
"../OLED.C", line 63: warning #1921-D: white space is required between the macro name "LCD_RST" and its replacement text
"../OLED.C", line 63: warning #48-D: incompatible redefinition of macro "LCD_RST" (declared at line 62)
"../OLED.C", line 64: warning #1921-D: white space is required between the macro name "LCD_DC" and its replacement text
"../OLED.C", line 65: warning #1921-D: white space is required between the macro name "LCD_DC" and its replacement text
"../OLED.C", line 65: warning #48-D: incompatible redefinition of macro "LCD_DC" (declared at line 64)
"../OLED.C", line 197: error #145: a value of type "char [51]" cannot be used to initialize an entity of type "const uint16_t []"
"../OLED.C", line 495: error #29: expected an expression
"../OLED.C", line 496: error #29: expected an expression
"../OLED.C", line 500: error #29: expected an expression
"../OLED.C", line 501: error #29: expected an expression
"../OLED.C", line 502: error #29: expected an expression
"../OLED.C", line 505: error #29: expected an expression
"../OLED.C", line 515: error #29: expected an expression
"../OLED.C", line 516: error #29: expected an expression
"../OLED.C", line 520: error #29: expected an expression
"../OLED.C", line 521: error #29: expected an expression
"../OLED.C", line 522: error #29: expected an expression
"../OLED.C", line 525: error #29: expected an expression
"../OLED.C", line 577: error #29: expected an expression
"../OLED.C", line 580: error #29: expected an expression
"../OLED.C", line 582: error #29: expected an expression
16 errors detected in the compilation of "../OLED.C".
>> Compilation failure
gmake: *** [OLED.obj] Error 1
gmake: Target `all' not remade because of errors.