summaryrefslogtreecommitdiff
path: root/bsp/xplorer4330/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/xplorer4330/drivers')
-rw-r--r--bsp/xplorer4330/drivers/drv_uart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/xplorer4330/drivers/drv_uart.c b/bsp/xplorer4330/drivers/drv_uart.c
index d220cf7546..ed928426a9 100644
--- a/bsp/xplorer4330/drivers/drv_uart.c
+++ b/bsp/xplorer4330/drivers/drv_uart.c
@@ -208,8 +208,8 @@ void rt_hw_uart_init(void)
config.parity = PARITY_NONE;
config.stop_bits = STOP_BITS_1;
config.invert = NRZ_NORMAL;
- config.bufsz = RT_SERIAL_RB_BUFSZ;
-
+ config.bufsz = RT_SERIAL_RB_BUFSZ;
+
serial0.ops = &lpc_uart_ops;
serial0.config = config;
@@ -240,7 +240,7 @@ void rt_hw_uart_init(void)
LPC_USART0->DLM = 0x00;
LPC_USART0->FDR = 0xC1;
LPC_USART0->LCR = 0x03; /* DLAB = 0 */
-
+
/* preemption = 1, sub-priority = 1 */
NVIC_SetPriority(uart->USART_IRQn, ((0x01 << 3) | 0x01));
@@ -260,7 +260,7 @@ void rt_hw_uart_init(void)
config.parity = PARITY_NONE;
config.stop_bits = STOP_BITS_1;
config.invert = NRZ_NORMAL;
- config.bufsz = RT_SERIAL_RB_BUFSZ;
+ config.bufsz = RT_SERIAL_RB_BUFSZ;
serial2.ops = &lpc_uart_ops;
serial2.config = config;