stm32l4/include/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_CPU_H
21 #define PERIPH_CPU_H
22 
23 #include "periph_cpu_common.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32 enum {
33  PORT_A = 0,
34  PORT_B = 1,
35  PORT_C = 2,
36  PORT_D = 3,
37  PORT_E = 4,
38  PORT_F = 5,
39  PORT_G = 6,
40  PORT_H = 7,
41 };
42 
43 #ifndef DOXYGEN
44 
48 #define HAVE_ADC_RES_T
49 typedef enum {
50  ADC_RES_6BIT = (0x3 << 3),
51  ADC_RES_8BIT = (0x2 << 3),
52  ADC_RES_10BIT = (0x1 << 3),
53  ADC_RES_12BIT = (0x0 << 3),
54  ADC_RES_14BIT = (0xfe),
55  ADC_RES_16BIT = (0xff)
56 } adc_res_t;
58 #endif /* ndef DOXYGEN */
59 
63 typedef struct {
64  gpio_t pin;
65  uint8_t chan;
66 } adc_conf_t;
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* PERIPH_CPU_H */
73 
ADC resolution: 12 bit.
not supported by hardware
ADC resolution: 10 bit.
gpio_t adc_conf_t
ADC configuration wrapper.
not supported by hardware
not supported by hardware
not supported by hardware