Other Parts Discussed in Thread: TM4C123GH6PM
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.
定义GPIO口功能的宏在driverlib/pin_map.h文件中定义。这个文件里面定义GPIO端口的宏之前有定义了 #ifdef PART_TM4C12**
因此,如果想要使用这些宏,必须先定义CPU型号。
例如,如果你的CPU是TM4C123GH6PM,那就需要在编译器中预定义或者是源码中定义 PART_TM4C123GH6PM,这样pin_map.h文件中的宏才能起作用。