mirror of https://github.com/ARMmbed/mbed-os.git
commit
09ea361c7e
|
@ -128,6 +128,13 @@ static void uart8_irq(void)
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
void serial_irq_handler(serial_t *obj, uart_irq_handler handler, uint32_t id)
|
||||||
{
|
{
|
||||||
struct serial_s *obj_s = SERIAL_S(obj);
|
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;
|
irq_n = UART8_IRQn;
|
||||||
vector = (uint32_t)&uart8_irq;
|
vector = (uint32_t)&uart8_irq;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if defined(LPUART1_BASE)
|
||||||
|
case LPUART_1:
|
||||||
|
irq_n = LPUART1_IRQn;
|
||||||
|
vector = (uint32_t)&lpuart1_irq;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue