Skip to content

Commit 0a0fcbb

Browse files
committed
Merge pull request #1603 from arnaudrichard/master
Fix IRQ enabled in serial_irq_set()
2 parents 3d5d6c2 + cbcdfab commit 0a0fcbb

File tree

1 file changed

+1
-1
lines changed
  • libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4

1 file changed

+1
-1
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4/serial_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ void serial_irq_set(serial_t *obj, SerialIrq irq, uint32_t enable)
751751
NVIC_EnableIRQ(irq_n);
752752
#endif
753753
} else { // TxIrq
754-
__HAL_UART_ENABLE_IT(handle, UART_IT_TC);
754+
__HAL_UART_ENABLE_IT(handle, UART_IT_TXE);
755755
NVIC_SetVector(irq_n, vector);
756756
NVIC_EnableIRQ(irq_n);
757757
#if DEVICE_SERIAL_ASYNCH_DMA

0 commit comments

Comments
 (0)