STM32H7 UART: enable LPUART

pull/10790/head
jeromecoutant 2019-06-06 14:52:31 +02:00
parent 15ec24e1b4
commit a90e68e788
1 changed files with 13 additions and 0 deletions

View File

@ -128,6 +128,13 @@ static void uart8_irq(void)
}
#endif
#if defined(LPUART1_BASE)
static void lpuart1_irq(void)
{
uart_irq(LPUART_1);
}
#endif
void serial_irq_handler(serial_t *obj, uart_irq_handler handler, uint32_t id)
{
struct serial_s *obj_s = SERIAL_S(obj);
@ -191,6 +198,12 @@ void serial_irq_set(serial_t *obj, SerialIrq irq, uint32_t enable)
irq_n = UART8_IRQn;
vector = (uint32_t)&uart8_irq;
break;
#endif
#if defined(LPUART1_BASE)
case LPUART_1:
irq_n = LPUART1_IRQn;
vector = (uint32_t)&lpuart1_irq;
break;
#endif
}