Skip to content

Commit 1395704

Browse files
committed
[EFM32] Fix serial_api bug selecting wrong peripheral for asynch IRQ handler.
1 parent c0253c1 commit 1395704

File tree

1 file changed

+2
-2
lines changed
  • libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32

1 file changed

+2
-2
lines changed

libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,14 +1693,14 @@ int serial_irq_handler_asynch(serial_t *obj)
16931693
}
16941694
}else{
16951695
if(obj->serial.periph.uart->IEN & USART_IEN_TXC){
1696-
USART_IntDisable(obj->serial.periph.leuart,USART_IEN_TXC);
1696+
USART_IntDisable(obj->serial.periph.uart,USART_IEN_TXC);
16971697
/* Clean up */
16981698
serial_dma_irq_fired[obj->serial.dmaOptionsTX.dmaChannel] = false;
16991699
serial_tx_abort_asynch(obj);
17001700
/* Notify CPP land of completion */
17011701
return SERIAL_EVENT_TX_COMPLETE & obj->serial.events;
17021702
}else{
1703-
USART_IntEnable(obj->serial.periph.leuart,USART_IEN_TXC);
1703+
USART_IntEnable(obj->serial.periph.uart,USART_IEN_TXC);
17041704
}
17051705
}
17061706
} else {

0 commit comments

Comments
 (0)