Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
periph_cpu.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 BISSELL Homecare, Inc.
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
#ifndef DOXYGEN
23
28
#define STM32_BOOTLOADER_ADDR (0x1FFF0000)
29
34
#define HAVE_ADC_RES_T
35
typedef
enum
{
36
ADC_RES_6BIT
= (ADC_CFGR1_RES),
37
ADC_RES_8BIT
= (ADC_CFGR1_RES_1),
38
ADC_RES_10BIT
= (ADC_CFGR1_RES_0),
39
ADC_RES_12BIT
= (0x00),
40
ADC_RES_14BIT
= (0xfe),
41
ADC_RES_16BIT
= (0xff)
42
}
adc_res_t
;
49
#define VBAT_ADC_RES ADC_RES_12BIT
50
#define VBAT_ADC_MAX 4095
53
#endif
/* ndef DOXYGEN */
54
55
#ifdef __cplusplus
56
}
57
#endif
58
adc_res_t
adc_res_t
Possible ADC resolution settings.
Definition:
adc.h:92
ADC_RES_16BIT
@ ADC_RES_16BIT
ADC resolution: 16 bit.
Definition:
adc.h:98
ADC_RES_8BIT
@ ADC_RES_8BIT
ADC resolution: 8 bit.
Definition:
adc.h:94
ADC_RES_14BIT
@ ADC_RES_14BIT
ADC resolution: 14 bit.
Definition:
adc.h:97
ADC_RES_6BIT
@ ADC_RES_6BIT
ADC resolution: 6 bit.
Definition:
adc.h:93
ADC_RES_10BIT
@ ADC_RES_10BIT
ADC resolution: 10 bit.
Definition:
adc.h:95
ADC_RES_12BIT
@ ADC_RES_12BIT
ADC resolution: 12 bit.
Definition:
adc.h:96
Generated on Thu Oct 2 2025 12:06:47 by
1.9.1