adc_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 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 = "k60temp",
32  .line = ADC_LINE(0),
33  .res = ADC_RES_16BIT,
34  },
35  {
36  .name = "k60vrefsh",
37  .line = ADC_LINE(2),
38  .res = ADC_RES_16BIT,
39  },
40  {
41  .name = "k60vrefsl",
42  .line = ADC_LINE(3),
43  .res = ADC_RES_16BIT,
44  },
45  {
46  .name = "k60bandgap",
47  .line = ADC_LINE(1),
48  .res = ADC_RES_16BIT,
49  },
50  {
51  .name = "DAC0feedback",
52  .line = ADC_LINE(4),
53  .res = ADC_RES_16BIT,
54  },
55  {
56  .name = "VREFfeedback",
57  .line = ADC_LINE(5),
58  .res = ADC_RES_16BIT,
59  },
60  {
61  .name = "Vbat",
62  .line = MULLE_VBAT_ADC_LINE,
63  .res = ADC_RES_16BIT,
64  },
65  {
66  .name = "Vchr",
67  .line = MULLE_VCHR_ADC_LINE,
68  .res = ADC_RES_16BIT,
69  },
70  {
71  .name = "PGA0_DP",
72  .line = ADC_LINE(8),
73  .res = ADC_RES_16BIT,
74  },
75  {
76  .name = "PGA0_DM",
77  .line = ADC_LINE(9),
78  .res = ADC_RES_16BIT,
79  },
80  {
81  .name = "PTA17",
82  .line = ADC_LINE(10),
83  .res = ADC_RES_16BIT,
84  },
85  {
86  .name = "PTB0",
87  .line = ADC_LINE(11),
88  .res = ADC_RES_16BIT,
89  },
90  {
91  .name = "PTC0",
92  .line = ADC_LINE(12),
93  .res = ADC_RES_16BIT,
94  },
95  {
96  .name = "PTC8",
97  .line = ADC_LINE(13),
98  .res = ADC_RES_16BIT,
99  },
100  {
101  .name = "PTC9",
102  .line = ADC_LINE(14),
103  .res = ADC_RES_16BIT,
104  },
105  {
106  .name = "PTC10",
107  .line = ADC_LINE(15),
108  .res = ADC_RES_16BIT,
109  },
110  {
111  .name = "PTC11",
112  .line = ADC_LINE(16),
113  .res = ADC_RES_16BIT,
114  },
115 };
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
#define ADC_LINE(x)
Default ADC line access macro.
Definition: adc.h:85
@ ADC_RES_16BIT
ADC resolution: 16 bit.
Definition: adc.h:98
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition: adc_params.h:28
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.