ls1bdev: add uart3 support

This commit is contained in:
Grissiom 2014-08-18 15:13:49 +08:00
parent a8fadf15b1
commit f1bc40d697
1 changed files with 7 additions and 4 deletions

View File

@ -256,6 +256,9 @@ void rt_hw_uart_init(void)
#elif defined(RT_USING_UART1) #elif defined(RT_USING_UART1)
uart->hw_base = UART1_BASE; uart->hw_base = UART1_BASE;
uart->irq = LS1B_UART1_IRQ; uart->irq = LS1B_UART1_IRQ;
#elif defined(RT_USING_UART3)
uart->hw_base = UART3_BASE;
uart->irq = LS1B_UART3_IRQ;
#endif #endif
/* device interface */ /* device interface */