TARGET_STM32L4: added missing #ifdef in serial_device.c

pull/5535/head
Michael Kaplan 2017-11-20 15:49:18 +01:00
parent b025ea16d6
commit 8a1c29c2e5
1 changed files with 2 additions and 0 deletions

View File

@ -491,9 +491,11 @@ static IRQn_Type serial_get_irq_n(serial_t *obj)
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;