完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
#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. |
|
相关推荐
1 个讨论
|
|
只有小组成员才能发言,加入小组>>
586 浏览 0 评论
1644 浏览 0 评论
2082 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1534 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1375 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1787浏览 29评论
2816浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1746浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1657浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1676浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-11 11:16 , Processed in 1.528179 second(s), Total 67, Slave 51 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1198