Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Linaro Limited
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32_CLOCK_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32_CLOCK_H_
8
9
/* clock bus references */
10
#define STM32_CLOCK_BUS_AHB1 0
11
#define STM32_CLOCK_BUS_AHB2 1
12
#define STM32_CLOCK_BUS_APB1 2
13
#define STM32_CLOCK_BUS_APB2 3
14
#define STM32_CLOCK_BUS_APB1_2 4
15
#define STM32_CLOCK_BUS_IOP 5
16
#define STM32_CLOCK_BUS_AHB3 6
17
#define STM32_CLOCK_BUS_AHB4 7
18
#define STM32_CLOCK_BUS_AHB5 8
19
#define STM32_CLOCK_BUS_AHB6 9
20
#define STM32_CLOCK_BUS_APB3 10
21
#define STM32_CLOCK_BUS_APB4 11
22
#define STM32_CLOCK_BUS_APB5 12
23
#define STM32_CLOCK_BUS_AXI 13
24
#define STM32_CLOCK_BUS_MLAHB 14
25
26
#define STM32_CLOCK_DIV_SHIFT 12
27
29
#define STM32_CLOCK_DIV(div) (((div) - 1) << STM32_CLOCK_DIV_SHIFT)
30
31
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32_CLOCK_H_ */
zephyr
dt-bindings
clock
stm32_clock.h
Generated on Fri Dec 20 2024 00:03:14 for Zephyr API Documentation by
1.12.0