mbed

Fork of mbed-dev by mbed official

Revision:
180:b0033dcd6934
Parent:
178:d650f5d4c87a
Child:
181:96ed750bd169
diff -r 79309dc6340a -r b0033dcd6934 targets/TARGET_STM/TARGET_STM32L4/serial_device.c
--- a/targets/TARGET_STM/TARGET_STM32L4/serial_device.c	Thu Nov 23 11:57:25 2017 +0000
+++ b/targets/TARGET_STM/TARGET_STM32L4/serial_device.c	Thu Dec 07 14:01:42 2017 +0000
@@ -491,9 +491,11 @@
             irq_n = USART2_IRQn;
             break;
 
+#if defined(UART3_BASE)
         case 2:
             irq_n = USART3_IRQn;
             break;
+#endif
 #if defined(UART4_BASE)
         case 3:
             irq_n = UART4_IRQn;