Zephyr Project API
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32wb0_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 STMicroelectronics
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32WB0_CLOCK_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32WB0_CLOCK_H_
8
9
#include <
zephyr/dt-bindings/clock/stm32_common_clocks.h
>
10
12
18
#define STM32_SRC_CLKSLOWMUX (STM32_SRC_LSI + 1)
19
#define STM32_SRC_CLK16MHZ (STM32_SRC_CLKSLOWMUX + 1)
20
#define STM32_SRC_CLK32MHZ (STM32_SRC_CLK16MHZ + 1)
21
23
#define STM32_CLOCK_BUS_AHB0 0x50
24
#define STM32_CLOCK_BUS_APB0 0x54
25
#define STM32_CLOCK_BUS_APB1 0x58
26
#define STM32_CLOCK_BUS_APB2 0x60
27
28
#define STM32_PERIPH_BUS_MIN STM32_CLOCK_BUS_AHB0
29
#define STM32_PERIPH_BUS_MAX STM32_CLOCK_BUS_APB2
30
32
#define CFGR_REG 0x08
33
35
#define APB2ENR_REG 0x60
36
38
39
/* WB05/WB09 only */
40
#define LPUART1_SEL(val) STM32_DT_CLOCK_SELECT((val), 13, 13, CFGR_REG)
41
/* WB06/WB07 only */
42
#define SPI2_I2S2_SEL(val) STM32_DT_CLOCK_SELECT((val), 22, 22, CFGR_REG)
43
/* `msb` is only 22 for WB06/WB07, but a single definition with msb=23 is acceptable */
44
#define SPI3_I2S3_SEL(val) STM32_DT_CLOCK_SELECT((val), 23, 22, CFGR_REG)
45
47
48
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32WB0_CLOCK_H_ */
stm32_common_clocks.h
include
zephyr
dt-bindings
clock
stm32wb0_clock.h
Generated on
for Zephyr Project API by
1.16.1