adc_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Eistec AB
3  * Copyright (C) 2020 Oppila Microsystems - http://www.oppila.in
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
21 #include "board.h"
22 #include "saul/periph.h"
23 #include "periph/adc.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 {
34  {
35  .name = "ADC1",
36  .line = ADC_LINE(0),
37  .res = ADC_RES_12BIT,
38  },
39  {
40  .name = "ADC2",
41  .line = ADC_LINE(1),
42  .res = ADC_RES_12BIT,
43  },
44  {
45  .name = "ADC3",
46  .line = ADC_LINE(2),
47  .res = ADC_RES_12BIT,
48  }
49 };
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
Low-level ADC peripheral driver interface definitions.
#define ADC_LINE(x)
Default ADC line access macro.
Definition: adc.h:85
@ ADC_RES_12BIT
ADC resolution: 12 bit.
Definition: adc.h:96
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition: adc_params.h:32
Parameter definitions for mapping peripherals directly to SAUL.
Direct mapped ADC configuration values.
Definition: periph.h:62
const char * name
name of the device connected to this pin
Definition: periph.h:63
Board specific definitions for the Zigduino board.