This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

串口配置问题

Other Parts Discussed in Thread: TM4C1230D5PM

配置串口引脚函数GPIOPinConfigure(uint32_t ui32PinConfig);

编译就出现,请问一下怎么解决

user\chuankou.c(16): error:  #20: identifier "GPIO_PC4_U7Rx" is undefined
user\chuankou.c(17): error:  #20: identifier "GPIO_PC5_U7Tx" is undefined

  • 确认源码中包含了头文件:#include "driverlib/pin_map.h"

    增加器件型号定义,例如在CCS中:

    工程属性~Build~ARM Compiler~Advanced Options~Predefined Symbols

    增加PART_TM4C1230D5PM(和你的芯片信号对应上,这里是TM4C1230D5PM)