stm32f0/include/periph_cpu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 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 
19 #ifndef PERIPH_CPU_H
20 #define PERIPH_CPU_H
21 
22 #include "periph_cpu_common.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 enum {
32  PORT_A = 0,
33  PORT_B = 1,
34  PORT_C = 2,
35  PORT_D = 3,
36  PORT_E = 4,
37  PORT_F = 5,
38 };
39 
40 #ifndef DOXYGEN
41 
45 #define HAVE_ADC_RES_T
46 typedef enum {
47  ADC_RES_6BIT = (0x3 << 3),
48  ADC_RES_8BIT = (0x2 << 3),
49  ADC_RES_10BIT = (0x1 << 3),
50  ADC_RES_12BIT = (0x0 << 3),
51  ADC_RES_14BIT = (0xfe),
52  ADC_RES_16BIT = (0xff)
53 } adc_res_t;
55 #endif /* ndef DOXYGEN */
56 
60 typedef struct {
61  gpio_t pin;
62  uint8_t chan;
63 } adc_conf_t;
64 
68 typedef struct {
69  gpio_t pin;
70  uint8_t chan;
71 } dac_conf_t;
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* PERIPH_CPU_H */
78 
ADC resolution: 12 bit.
gpio_t pin
pin connected to the line
ADC resolution: 14 bit (not supported)
ADC resolution: 10 bit.
ADC resolution: 16 bit (not supported)
ADC resolution: 8 bit.
ADC resolution: 6 bit.
CPU specific DAC configuration.
CPU specific ADC configuration.
uint8_t chan
DAC device used for this line.