MAX32630: Map UART IRQ to serial object.

Before this change none of the IRQ set would be dispatch to the actual serial object.
pull/4696/head
Vincent Coubard 2017-07-03 16:35:19 +01:00
parent b89fd03d69
commit 253de5286d
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ void serial_irq_handler(serial_t *obj, uart_irq_handler handler, uint32_t id)
//******************************************************************************
void serial_irq_set(serial_t *obj, SerialIrq irq, uint32_t enable)
{
MBED_ASSERT(obj->index < MXC_CFG_UART_INSTANCES);
objs[obj->index] = obj;
switch (obj->index) {
case 0:
NVIC_SetVector(UART0_IRQn, (uint32_t)uart0_handler);