28377s使用SIC_ECHOBACK_CPU01例程,只是修改下端口,使用串口助手没有数据,修改的地方如下:
GPIO_SetupPinMux(9, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(9, GPIO_INPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(8, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(8, GPIO_OUTPUT, GPIO_ASYNC);
硬件方面已经排查,没有问题,但一直都没数据发出,以上配置是否正确?
Seven Han:对于void GPIO_SetupPinMux(Uint16 pin, Uint16 cpu, Uint16 peripheral)函数,参数的描述如下:
pin – This is the GPIO number
cpu – This is the CPU number – 1 (see defines of GPIO_MUX_CPU1 and GPIO_MUX_CPU2)
peripheral – This is the mux position on that table you referenced in the datasheet. So this will be a integer from 0-15 depending on what you are selecting.
28377s使用SIC_ECHOBACK_CPU01例程,只是修改下端口,使用串口助手没有数据,修改的地方如下:
GPIO_SetupPinMux(9, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(9, GPIO_INPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(8, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(8, GPIO_OUTPUT, GPIO_ASYNC);
硬件方面已经排查,没有问题,但一直都没数据发出,以上配置是否正确?
tecman chen:
回复 Seven Han:
peripheral – This is the mux position on that table you referenced in the datasheet. So this will be a integer from 0-15 depending on what you are selecting.
这个参数不是很理解,具体在参考手册哪一页,找过都没找到
TI中文支持网


