mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
b89fd03d69
commit
253de5286d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue