Skip to content

Commit 369187c

Browse files
Merge pull request #5535 from MikeDK/nucleo_l432kc_async_serial_fix
NUCLEO_L432KC: Fixed async serial
2 parents 4b57c58 + 29ae97c commit 369187c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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;

targets/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@
13791379
}
13801380
},
13811381
"detect_code": ["0770"],
1382-
"device_has_add": ["ANALOGOUT", "LOWPOWERTIMER", "SERIAL_FC", "CAN", "TRNG", "FLASH"],
1382+
"device_has_add": ["ANALOGOUT", "LOWPOWERTIMER", "SERIAL_FC", "SERIAL_ASYNCH", "CAN", "TRNG", "FLASH"],
13831383
"release_versions": ["2", "5"],
13841384
"device_name": "STM32L432KC"
13851385
},

0 commit comments

Comments
 (0)