Skip to content

Commit 4f9bdf5

Browse files
committed
STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH
1 parent 9cd14e2 commit 4f9bdf5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

targets/TARGET_STM/TARGET_STM32F3/serial_api.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,14 @@ static IRQn_Type serial_get_irq_n(serial_t *obj)
578578
irq_n = USART3_IRQn;
579579
break;
580580
#endif
581-
#if defined(USART4_BASE)
581+
#if defined(UART4_BASE)
582582
case 3:
583-
irq_n = USART4_IRQn;
583+
irq_n = UART4_IRQn;
584584
break;
585585
#endif
586-
#if defined(USART5_BASE)
586+
#if defined(UART5_BASE)
587587
case 4:
588-
irq_n = USART5_IRQn;
588+
irq_n = UART5_IRQn;
589589
break;
590590
#endif
591591
default:

0 commit comments

Comments
 (0)