Merge pull request #10790 from jeromecoutant/PR_H7_LPUART

STM32H7 enable LPUART
pull/10807/head
Martin Kojtal 2019-06-11 09:06:22 +01:00 committed by GitHub
commit 09ea361c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}