Skip to content

Commit 1ebd6b5

Browse files
FRASTMcfriedt
authored andcommitted
driver: clock: stm32 clock control supports ahb_prescaler
This constraint on the AHB prescaler is removed. The ahb-prescaler is allow from 1-512. For stm32 common and stm32U5 devices. Signed-off-by: Francois Ramu <[email protected]>
1 parent 8eb050c commit 1ebd6b5

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

drivers/clock_control/clock_stm32_ll_common.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,6 @@
6464
#define STM32WL_DUAL_CORE
6565
#endif
6666

67-
#if STM32_AHB_PRESCALER > 1
68-
/*
69-
* AHB prescaler allows to set a HCLK frequency (feeding cortex systick)
70-
* lower than SYSCLK frequency (actual core frequency).
71-
* Though, zephyr doesn't make a difference today between these two clocks.
72-
* So, changing this prescaler is not allowed until it is made possible to
73-
* use them independently in zephyr clock subsystem.
74-
*/
75-
#error "AHB prescaler can't be higher than 1"
76-
#endif
77-
7867
/**
7968
* @brief fill in AHB/APB buses configuration structure
8069
*/

drivers/clock_control/clock_stm32_ll_u5.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@
3030
#define z_apb3_prescaler(v) LL_RCC_APB3_DIV_ ## v
3131
#define apb3_prescaler(v) z_apb3_prescaler(v)
3232

33-
34-
#if STM32_AHB_PRESCALER > 1
35-
/*
36-
* AHB prescaler allows to set a HCLK frequency (feeding cortex systick)
37-
* lower than SYSCLK frequency (actual core frequency).
38-
* Though, zephyr doesn't make a difference today between these two clocks.
39-
* So, changing this prescaler is not allowed until it is made possible to
40-
* use them independently in zephyr clock subsystem.
41-
*/
42-
#error "AHB prescaler can't be higher than 1"
43-
#endif
44-
4533
#if STM32_SYSCLK_SRC_PLL
4634

4735
/**

0 commit comments

Comments
 (0)