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) 2017 Freie Universität Berlin
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
20
#ifndef PERIPH_L4_PERIPH_CPU_H
21
#define PERIPH_L4_PERIPH_CPU_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
30
#if defined(CPU_MODEL_STM32L476RG) || defined(CPU_MODEL_STM32L475VG)
31
#define ADC_DEVS (3U)
32
#elif defined(CPU_MODEL_STM32L452RE) || defined(CPU_MODEL_STM32L432KC)
33
#define ADC_DEVS (1U)
34
#endif
35
36
#if defined(CPU_MODEL_STM32L476RG) || defined(CPU_MODEL_STM32L475VG) || \
37
defined(CPU_MODEL_STM32L452RE) || defined(CPU_MODEL_STM32L432KC)
38
41
#define ADC_T_ADCVREG_STUP_US (20)
42
#endif
43
44
#ifndef DOXYGEN
45
50
#define STM32_BOOTLOADER_ADDR (0x1FFF0000)
51
56
#define HAVE_ADC_RES_T
57
typedef
enum
{
58
ADC_RES_6BIT
= (ADC_CFGR_RES),
59
ADC_RES_8BIT
= (ADC_CFGR_RES_1),
60
ADC_RES_10BIT
= (ADC_CFGR_RES_0),
61
ADC_RES_12BIT
= (0x0),
62
ADC_RES_14BIT
= (0x1),
63
ADC_RES_16BIT
= (0x2)
64
}
adc_res_t
;
66
#endif
/* ndef DOXYGEN */
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* PERIPH_L4_PERIPH_CPU_H */
73
ADC_RES_6BIT
@ ADC_RES_6BIT
ADC resolution: 6 bit.
Definition:
adc.h:94
ADC_RES_14BIT
@ ADC_RES_14BIT
ADC resolution: 14 bit.
Definition:
adc.h:98
adc_res_t
adc_res_t
Possible ADC resolution settings.
Definition:
adc.h:93
ADC_RES_16BIT
@ ADC_RES_16BIT
ADC resolution: 16 bit.
Definition:
adc.h:99
ADC_RES_8BIT
@ ADC_RES_8BIT
ADC resolution: 8 bit.
Definition:
adc.h:95
ADC_RES_10BIT
@ ADC_RES_10BIT
ADC resolution: 10 bit.
Definition:
adc.h:96
ADC_RES_12BIT
@ ADC_RES_12BIT
ADC resolution: 12 bit.
Definition:
adc.h:97
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17