Zephyr API Documentation
4.3.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32f37x_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 STMicroelectronics
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F37X_CLOCK_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F37X_CLOCK_H_
8
9
#include "
stm32f3_clock.h
"
10
11
/* On STM32F37x, the ADC prescaler is located in CFGR1 and the prescaler values are more limited */
12
#undef ADC12_PRE
13
#undef ADC34_PRE
14
#undef ADC_PRE_DISABLED
15
#undef ADC_PRE_DIV_1
16
#undef ADC_PRE_DIV_2
17
#undef ADC_PRE_DIV_4
18
#undef ADC_PRE_DIV_6
19
#undef ADC_PRE_DIV_8
20
#undef ADC_PRE_DIV_10
21
#undef ADC_PRE_DIV_12
22
#undef ADC_PRE_DIV_16
23
#undef ADC_PRE_DIV_32
24
#undef ADC_PRE_DIV_64
25
#undef ADC_PRE_DIV_128
26
#undef ADC_PRE_DIV_256
27
30
#define ADC_PRE(val) STM32_DT_CLOCK_SELECT((val), 15, 14, CFGR_REG)
31
32
/* ADC prescaler division factor for STM32F37x */
33
#define ADC_PRE_DIV_2 0
34
#define ADC_PRE_DIV_4 1
35
#define ADC_PRE_DIV_6 2
36
#define ADC_PRE_DIV_8 3
37
38
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F37X_CLOCK_H_ */
stm32f3_clock.h
zephyr
dt-bindings
clock
stm32f37x_clock.h
Generated on
for Zephyr API Documentation by
1.14.0