昨天下载了例程。然后将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")
……
有点迷糊了。 |