Skip to content

Commit 4abf3d5

Browse files
jurenatfabiobaltieri
authored andcommitted
include: zephyr: dt-bindings: clock: Add HSI48 support STM32C071
STM32C071 have USB peripheral which can be clocked from HSI (HSIUSB48). Signed-off-by: Tomáš Juřena <[email protected]>
1 parent 8a7b472 commit 4abf3d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

include/zephyr/dt-bindings/clock/stm32c0_clock.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@
2323
/** System clock */
2424
/* defined in stm32_common_clocks.h */
2525
/** Fixed clocks */
26-
/* Low speed clocks defined in stm32_common_clocks.h */
26+
/* Low speed clocks defined in stm32_common_clocks.h
27+
* STM32_SRC_HSI relates to HSI48 clock mentioned in RM0490 Reference Manual
28+
* STM32_SRC_HSI48 relates to HSIUSB48 mentioned in RM0490 Reference Manual
29+
*/
2730
#define STM32_SRC_HSI (STM32_SRC_LSI + 1)
28-
#define STM32_SRC_HSE (STM32_SRC_HSI + 1)
31+
#define STM32_SRC_HSI48 (STM32_SRC_HSI + 1)
32+
#define STM32_SRC_HSE (STM32_SRC_HSI48 + 1)
2933
/** Peripheral bus clock */
3034
#define STM32_SRC_PCLK (STM32_SRC_HSE + 1)
3135

0 commit comments

Comments
 (0)