Skip to content

Commit 8a1c29c

Browse files
committed
TARGET_STM32L4: added missing #ifdef in serial_device.c
1 parent b025ea1 commit 8a1c29c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/TARGET_STM32L4/serial_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,11 @@ static IRQn_Type serial_get_irq_n(serial_t *obj)
491491
irq_n = USART2_IRQn;
492492
break;
493493

494+
#if defined(UART3_BASE)
494495
case 2:
495496
irq_n = USART3_IRQn;
496497
break;
498+
#endif
497499
#if defined(UART4_BASE)
498500
case 3:
499501
irq_n = UART4_IRQn;

0 commit comments

Comments
 (0)