diff --git a/demos/bsp/boards/embedded_artists/ea4357/board_ea4357.c b/demos/bsp/boards/embedded_artists/ea4357/board_ea4357.c index b5713fb1..c76b94bd 100644 --- a/demos/bsp/boards/embedded_artists/ea4357/board_ea4357.c +++ b/demos/bsp/boards/embedded_artists/ea4357/board_ea4357.c @@ -73,7 +73,7 @@ void board_init(void) UART_CFG_Type UARTConfigStruct; UART_ConfigStructInit(&UARTConfigStruct); - UARTConfigStruct.Baud_rate = CFG_UART_BAUDRATE; + UARTConfigStruct.Baud_rate = CFG_UART_BAUDRATE; UARTConfigStruct.Clock_Speed = 0; UART_Init(BOARD_UART_PORT, &UARTConfigStruct); diff --git a/demos/bsp/boards/ngx/board_ngx4330.c b/demos/bsp/boards/ngx/board_ngx4330.c index c134ff95..4efd4c91 100644 --- a/demos/bsp/boards/ngx/board_ngx4330.c +++ b/demos/bsp/boards/ngx/board_ngx4330.c @@ -75,16 +75,16 @@ void board_init(void) #if CFG_UART_ENABLE //------------- UART init -------------// + scu_pinmux(0x6 ,4, MD_PDN | MD_EZI, FUNC2); // UART0_TXD + scu_pinmux(0x6 ,5, MD_PDN | MD_EZI, FUNC2); // UART0_RXD + UART_CFG_Type UARTConfigStruct; - - scu_pinmux(0x6 ,4, MD_PDN|MD_EZI, FUNC2); // UART0_TXD - scu_pinmux(0x6 ,5, MD_PDN|MD_EZI, FUNC2); // UART0_RXD - UART_ConfigStructInit(&UARTConfigStruct); // default: baud = 9600, 8 bit data, 1 stop bit, no parity - UARTConfigStruct.Baud_rate = CFG_UART_BAUDRATE; // Re-configure baudrate + UARTConfigStruct.Baud_rate = CFG_UART_BAUDRATE; // Re-configure baudrate + UARTConfigStruct.Clock_Speed = 0; - UART_Init((LPC_USARTn_Type*) LPC_USART0, &UARTConfigStruct); // Initialize UART port - UART_TxCmd((LPC_USARTn_Type*) LPC_USART0, ENABLE); // Enable UART + UART_Init(BOARD_UART_PORT, &UARTConfigStruct); + UART_TxCmd(BOARD_UART_PORT, ENABLE); // Enable UART #endif } diff --git a/demos/host/host_cmsis_rtx/.cproject b/demos/host/host_cmsis_rtx/.cproject index 8d1b776f..4763e1cc 100644 --- a/demos/host/host_cmsis_rtx/.cproject +++ b/demos/host/host_cmsis_rtx/.cproject @@ -46,7 +46,6 @@