4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-28 07:07:07 +08:00

[bsp] Fix serial 3 issue in beaglebone.

This commit is contained in:
bernard 2014-07-24 08:32:35 +08:00
parent 7c2c3ddc34
commit 4e96775e89

View File

@ -426,7 +426,7 @@ int rt_hw_serial_init(void)
config.stop_bits = STOP_BITS_1;
config.invert = NRZ_NORMAL;
serial3.ops = &am33xx_uart_ops;
serial3.int_rx = &uart_3_int_rx;
serial3.int_rx = &uart3_int_rx;
serial3.config = config;
/* enable RX interrupt */
UART_IER_REG(uart3.base) = 0x01;
@ -470,7 +470,7 @@ int rt_hw_serial_init(void)
config.parity = PARITY_NONE;
config.stop_bits = STOP_BITS_1;
config.invert = NRZ_NORMAL;
serial5.ops = &am33xx_uart_ops;
serial5.int_rx = &uart5_int_rx;
serial5.config = config;