[MCU] 关于TIVA例程的问题

[复制链接]
590|0
 楼主| 两只袜子 发表于 2020-12-7 10:51 | 显示全部楼层 |阅读模式
TI, IO, AI, ni, gp
昨天下载了例程。然后将CH3_1的LCD例程复制到自己的工程中,并将其他.C .H包含进来。
之后编译,出现以下错误:
"../main.c", line 156: warning #225-D: function declared implicitly
"../main.c", line 156: error #20: identifier "INT_GPIOD_" is undefined

line 156的内容: IntEnable(INT_GPIOD);
  
之后我猜测是例程中没有include TM4C123GH6PM.H的原因,就将其包含进来,
之后发生了更多错误:
"G:/tivainc/inc/tm4c123gh6pm.h", line 48: warning #48-D: incompatible redefinition of macro "INT_GPIOA" (declared at line 236 of "G:/tivainc/inc/hw_ints.h")
"G:/tivainc/inc/tm4c123gh6pm.h", line 49: warning #48-D: incompatible redefinition of macro "INT_GPIOB" (declared at line 237 of "G:/tivainc/inc/hw_ints.h")
"G:/tivainc/inc/tm4c123gh6pm.h", line 50: warning #48-D: incompatible redefinition of macro "INT_GPIOC" (declared at line 238 of "G:/tivainc/inc/hw_ints.h")
……

有点迷糊了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2122

主题

8121

帖子

11

粉丝
快速回复 在线客服 返回列表 返回顶部