Zephyr API Documentation
4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32f1_adc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 STMicrelectronics
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32F1_ADC_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32F1_ADC_H_
8
9
#include <
zephyr/dt-bindings/adc/stm32_adc.h
>
10
11
/*
12
* For STM32 F1 and similar, the only available resolution is 12-bit
13
* and there is no register to set it.
14
* We still need the macro to get the value of the resolution but the driver
15
* does not set the resolution in any register by checking that the register
16
* address is configured as 0xFF
17
*/
18
#define STM32_ADC_RES_REG 0xFF
19
#define STM32_ADC_RES_SHIFT 0
20
#define STM32_ADC_RES_MASK 0x00
21
#define STM32_ADC_RES_REG_VAL 0x00
22
23
#define STM32F1_ADC_RES(resolution) \
24
STM32_ADC_RES(resolution, STM32_ADC_RES_REG_VAL)
25
26
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_STM32F1_ADC_H_ */
stm32_adc.h
zephyr
dt-bindings
adc
stm32f1_adc.h
Generated on Fri Nov 8 2024 21:02:38 for Zephyr API Documentation by
1.12.0