Skip to content

Commit 39b724c

Browse files
committed
STM32L4: Use HSI for LPUART
Impact all STM32L4x5 and STM32L4x6 targets
1 parent cdc2d45 commit 39b724c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

targets/targets.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3279,6 +3279,9 @@
32793279
"extra_labels_add": [
32803280
"STM32L475xG"
32813281
],
3282+
"overrides": {
3283+
"lpuart_clock_source": "USE_LPUART_CLK_HSI"
3284+
},
32823285
"macros_add": [
32833286
"STM32L475xx",
32843287
"MBED_SPLIT_HEAP"
@@ -3322,6 +3325,9 @@
33223325
"components_add": [
33233326
"FLASHIAP"
33243327
],
3328+
"overrides": {
3329+
"lpuart_clock_source": "USE_LPUART_CLK_HSI"
3330+
},
33253331
"macros_add": [
33263332
"STM32L476xx",
33273333
"MBED_SPLIT_HEAP"
@@ -3385,6 +3391,9 @@
33853391
"components_add": [
33863392
"FLASHIAP"
33873393
],
3394+
"overrides": {
3395+
"lpuart_clock_source": "USE_LPUART_CLK_HSI"
3396+
},
33883397
"macros_add": [
33893398
"STM32L486xx",
33903399
"MBEDTLS_CONFIG_HW_SUPPORT",
@@ -3409,8 +3418,7 @@
34093418
"MCU_STM32L486xG"
34103419
],
34113420
"overrides": {
3412-
"clock_source": "USE_PLL_HSE_XTAL",
3413-
"lpuart_clock_source": "USE_LPUART_CLK_HSI"
3421+
"clock_source": "USE_PLL_HSE_XTAL"
34143422
},
34153423
"detect_code": [
34163424
"0460"
@@ -3432,6 +3440,9 @@
34323440
"components_add": [
34333441
"FLASHIAP"
34343442
],
3443+
"overrides": {
3444+
"lpuart_clock_source": "USE_LPUART_CLK_HSI"
3445+
},
34353446
"macros_add": [
34363447
"STM32L496xx"
34373448
]

0 commit comments

Comments
 (0)