1# strong11
请按如下程序,将uart1对应管脚也增加下面的两条管脚复用功能设置,由于tempest系列的IO复用功能很多,所以需要配置,因为PA0和PA1默认的复用功能为uart0,所以不加这两条指令uart0可以正常使用,但其他的PD2,PD3默认复用功能并不是uart,所以必须设置。
//
// Configure the GPIO pin muxing for the UART function.
// This is only necessary if your part supports GPIO pin function muxing.
// Study the data sheet to see which functions are allocated per pin.
// TODO: change this to select the port/pin you are using
//
GPIOPinConfigure(GPIO_PA0_U0RX);
GPIOPinConfigure(GPIO_PA1_U0TX);
|