代码写的没有错误啊,头文件我都写好了,为啥总是提示未定义的错误呢??
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.
在使用 pin_map.h 需要加上
#ifndef PART_TM4C123GH6PM
#define PART_TM4C123GH6PM
#endif
properties——advanced options——predefined symbols,上面预定义predifine name 添加 PART_TM4C123GH6PM
不同型号的MCU,管脚定义不同。确定一下你的MCU型号吧。
pin_map.h中,#ifdef PART_TM4C1230C3PM的话,PB6没有M0PWM0的功能,只有这些:
#define GPIO_PB6_SSI2RX 0x00011802
#define GPIO_PB6_I2C5SCL 0x00011803
#define GPIO_PB6_T0CCP0 0x00011807
因为TM4C1230C3PM的PB6根本就没这个功能。