|
板凳
楼主 |
发表于 2019-2-18 16:00:04
|
只看该作者
user_main.c文件
uart_init_3(9600,115200);
UART_SetPrintPort(1); //这个是否已经设置为了串口1呢?
在 uart.c文件里面
UART_SetPrintPort(uint8 uart_no)
{
if(uart_no==1){
os_install_putc1(uart1_write_char);
}else{
/*option 1: do not wait if uart fifo is full,drop current character*/
os_install_putc1(uart0_write_char_no_wait);
/*option 2: wait for a while if uart fifo is full*/
os_install_putc1(uart0_write_char);
}
}
根据前面定义好像是设置了串口1了呢?
os_install_putc1(uart1_write_char); |
|