Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
periph_cpu.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Inria
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
#ifndef DOXYGEN
27
32
#define STM32_BOOTLOADER_ADDR (0x1FFF0000)
33
38
#define HAVE_ADC_RES_T
39
typedef
enum
{
40
ADC_RES_6BIT
= (ADC_CFGR1_RES),
41
ADC_RES_8BIT
= (ADC_CFGR1_RES_1),
42
ADC_RES_10BIT
= (ADC_CFGR1_RES_0),
43
ADC_RES_12BIT
= (0x00),
44
ADC_RES_14BIT
= (0xfe),
45
ADC_RES_16BIT
= (0xff)
46
}
adc_res_t
;
53
#define VBAT_ADC_RES ADC_RES_12BIT
54
#define VBAT_ADC_MAX 4095
57
#endif
/* ndef DOXYGEN */
58
62
#if defined(CPU_LINE_STM32G0B1xx) || defined(CPU_LINE_STM32G081xx) || \
63
defined(CPU_LINE_STM32G071xx) || defined(CPU_LINE_STM32G0C1xx)
64
#define TIM6_DAC_LPTIM1_SHARED_IRQ
65
#endif
66
67
#ifdef __cplusplus
68
}
69
#endif
70
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 Sat Jun 28 2025 19:41:32 by
1.9.1