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.

TMS320F280049: 官方例程CAN GPIO配置问题

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

库函数版的gpio例程中(C2000Ware_3_04_00_00\driverlib\f28004x\examples\gpio\gpio_ex1_setup.c),对can口的配置如下:

为什么GPIO31是CANTXA,属于发送,为什么会配置GPIO_QUAL_ASYNC。个人认为应该是把GPIO30(CANRXA)配置GPIO_QUAL_ASYNC才对。

同时我也翻了一下寄存器版的gpio例程(C2000Ware_3_04_00_00\device_support\f28004x\examples\gpio\gpio_ex1_setup.c),发现他的注释都错了,GPIO30应该是CANRXA,GPIO31应该是CANTXA。