adc_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 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 = "coretemp",
32  .line = ADC_LINE(0),
33  .res = ADC_RES_16BIT,
34  },
35  {
36  .name = "bandgap_1V",
37  .line = ADC_LINE(1),
38  .res = ADC_RES_16BIT,
39  },
40  {
41  .name = "dcdcvbat",
42  .line = ADC_LINE(2),
43  .res = ADC_RES_16BIT,
44  },
45 };
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
#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
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition: adc_params.h:28
Board specific definitions for the Zigduino board.