saml21/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 
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 static const int8_t exti_config[2][32] = {
33  { 0, 1, 2, 3, 4, 5, 6, 7, -1, 9, 10, 11, 12, 13, 14, 15,
34  0, 1, 2, 3, 4, 5, 6, 7, 12, 13, -1, 15, -1, -1, 10, 11},
35  { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
36  0, 1, -1, -1, -1, -1, 6, 7, -1, -1, -1, -1, -1, -1, 14, 15},
37 };
38 
39 #define HAVE_ADC_RES_T
40 typedef enum {
41  ADC_RES_6BIT = 0xff,
42  ADC_RES_8BIT = ADC_CTRLC_RESSEL_8BIT,
43  ADC_RES_10BIT = ADC_CTRLC_RESSEL_10BIT,
44  ADC_RES_12BIT = ADC_CTRLC_RESSEL_12BIT,
45  ADC_RES_14BIT = 0xfe,
46  ADC_RES_16BIT = 0xfd
47 } adc_res_t;
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* PERIPH_CPU_H */
54 
ADC resolution: 12 bit.
ADC resolution: 10 bit.
ADC resolution: 8 bit.
static const int8_t exti_config[2][32]
Mapping of pins to EXTI lines, -1 means not EXTI possible.