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 #define CPUID_ADDR (0x1ffff7ac)
32 
36 enum {
37  PORT_A = 0,
38  PORT_B = 1,
39  PORT_C = 2,
40  PORT_D = 3,
41  PORT_E = 4,
42  PORT_F = 5,
43 };
44 
45 #ifndef DOXYGEN
46 
50 #define HAVE_ADC_RES_T
51 typedef enum {
52  ADC_RES_6BIT = (0x3 << 3),
53  ADC_RES_8BIT = (0x2 << 3),
54  ADC_RES_10BIT = (0x1 << 3),
55  ADC_RES_12BIT = (0x0 << 3),
56  ADC_RES_14BIT = (0xfe),
57  ADC_RES_16BIT = (0xff)
58 } adc_res_t;
60 #endif /* ndef DOXYGEN */
61 
65 typedef struct {
66  gpio_t pin;
67  uint8_t chan;
68 } adc_conf_t;
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* PERIPH_CPU_H */
75 
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