adc_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 Eistec AB
3  * SPDX-FileCopyrightText: 2020 Oppila Microsystems - http://www.oppila.in
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
18 #include "board.h"
19 #include "saul/periph.h"
20 #include "periph/adc.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 {
31  {
32  .name = "ADC1",
33  .line = ADC_LINE(0),
34  .res = ADC_RES_12BIT,
35  },
36  {
37  .name = "ADC2",
38  .line = ADC_LINE(1),
39  .res = ADC_RES_12BIT,
40  },
41  {
42  .name = "ADC3",
43  .line = ADC_LINE(2),
44  .res = ADC_RES_12BIT,
45  }
46 };
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
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:29
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.