adc_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Eistec AB
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 
9 #pragma once
10 
21 #include "board.h"
22 #include "saul/periph.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 {
33  {
34  .name = "k60temp",
35  .line = ADC_LINE(0),
36  .res = ADC_RES_16BIT,
37  },
38  {
39  .name = "k60vrefsh",
40  .line = ADC_LINE(2),
41  .res = ADC_RES_16BIT,
42  },
43  {
44  .name = "k60vrefsl",
45  .line = ADC_LINE(3),
46  .res = ADC_RES_16BIT,
47  },
48  {
49  .name = "k60bandgap",
50  .line = ADC_LINE(1),
51  .res = ADC_RES_16BIT,
52  },
53  {
54  .name = "DAC0feedback",
55  .line = ADC_LINE(4),
56  .res = ADC_RES_16BIT,
57  },
58  {
59  .name = "VREFfeedback",
60  .line = ADC_LINE(5),
61  .res = ADC_RES_16BIT,
62  },
63  {
64  .name = "Vbat",
65  .line = MULLE_VBAT_ADC_LINE,
66  .res = ADC_RES_16BIT,
67  },
68  {
69  .name = "Vchr",
70  .line = MULLE_VCHR_ADC_LINE,
71  .res = ADC_RES_16BIT,
72  },
73  {
74  .name = "PGA0_DP",
75  .line = ADC_LINE(8),
76  .res = ADC_RES_16BIT,
77  },
78  {
79  .name = "PGA0_DM",
80  .line = ADC_LINE(9),
81  .res = ADC_RES_16BIT,
82  },
83  {
84  .name = "PTA17",
85  .line = ADC_LINE(10),
86  .res = ADC_RES_16BIT,
87  },
88  {
89  .name = "PTB0",
90  .line = ADC_LINE(11),
91  .res = ADC_RES_16BIT,
92  },
93  {
94  .name = "PTC0",
95  .line = ADC_LINE(12),
96  .res = ADC_RES_16BIT,
97  },
98  {
99  .name = "PTC8",
100  .line = ADC_LINE(13),
101  .res = ADC_RES_16BIT,
102  },
103  {
104  .name = "PTC9",
105  .line = ADC_LINE(14),
106  .res = ADC_RES_16BIT,
107  },
108  {
109  .name = "PTC10",
110  .line = ADC_LINE(15),
111  .res = ADC_RES_16BIT,
112  },
113  {
114  .name = "PTC11",
115  .line = ADC_LINE(16),
116  .res = ADC_RES_16BIT,
117  },
118 };
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 
#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:31
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.