adc_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Eistec AB
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "board.h"
19 #include "saul/periph.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 {
30  {
31  .name = "ADC0_DP",
32  .line = ADC_LINE(0),
33  .res = ADC_RES_16BIT,
34  },
35  {
36  .name = "ADC0_DM",
37  .line = ADC_LINE(1),
38  .res = ADC_RES_16BIT,
39  },
40  {
41  .name = "ADC1_DP",
42  .line = ADC_LINE(2),
43  .res = ADC_RES_16BIT,
44  },
45  {
46  .name = "ADC1_DM",
47  .line = ADC_LINE(3),
48  .res = ADC_RES_16BIT,
49  },
50  {
51  .name = "A0",
52  .line = ADC_LINE(4),
53  .res = ADC_RES_16BIT,
54  },
55  {
56  .name = "A1",
57  .line = ADC_LINE(5),
58  .res = ADC_RES_16BIT,
59  },
60  {
61  .name = "A2",
62  .line = ADC_LINE(6),
63  .res = ADC_RES_16BIT,
64  },
65  {
66  .name = "A3",
67  .line = ADC_LINE(7),
68  .res = ADC_RES_16BIT,
69  },
70 };
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition: adc_params.h:28
#define ADC_LINE(x)
Default ADC line access macro.
Definition: adc.h:85
@ ADC_RES_16BIT
ADC resolution: 16 bit.
Definition: adc.h:98
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.