adc_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Thomas Stilwell <stilwellt@openlabs.co>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "board.h"
20 #include "saul/periph.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 {
31  {
32  .name = "A0",
33  .line = ADC_LINE(0),
34  .res = ADC_RES_16BIT,
35  },
36  {
37  .name = "A1",
38  .line = ADC_LINE(1),
39  .res = ADC_RES_16BIT,
40  },
41  {
42  .name = "A2",
43  .line = ADC_LINE(2),
44  .res = ADC_RES_16BIT,
45  },
46  {
47  .name = "A3",
48  .line = ADC_LINE(3),
49  .res = ADC_RES_16BIT,
50  },
51  {
52  .name = "coretemp",
53  .line = ADC_LINE(4),
54  .res = ADC_RES_16BIT,
55  },
56  {
57  .name = "corebandgap",
58  .line = ADC_LINE(5),
59  .res = ADC_RES_16BIT,
60  },
61  {
62  .name = "dcdcvbat",
63  .line = ADC_LINE(6),
64  .res = ADC_RES_16BIT,
65  },
66 };
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
#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: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.