Skip to content

Commit 601dcac

Browse files
erwangogalak
authored andcommitted
drivers/clock_control: stm32: Fix default value for AHB prescaler
Default AHB presacler value was set to 0 which is not an allowed value. Set it to 1 and limit range from 1 to 512. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 7b7e8e8 commit 601dcac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clock_control/Kconfig.stm32

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ endif # SOC_SERIES_STM32L4X
382382

383383
config CLOCK_STM32_AHB_PRESCALER
384384
int "AHB prescaler"
385-
default 0
386-
range 0 512
385+
default 1
386+
range 1 512
387387
help
388388
AHB prescaler, allowed values: 1, 2, 4, 8, 16, 64, 128,
389389
256, 512.

0 commit comments

Comments
 (0)