Loading...
Searching...
No Matches
adc_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Eistec AB
3 * SPDX-FileCopyrightText: 2018 HAW Hamburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "saul/periph.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31{
32 {
33 .name = "coretemp",
34 .line = ADC_LINE(0),
35 .res = ADC_RES_16BIT,
36 },
37 {
38 .name = "corebandgap",
39 .line = ADC_LINE(1),
40 .res = ADC_RES_16BIT,
41 },
42 {
43 .name = "dcdcvbat",
44 .line = ADC_LINE(2),
45 .res = ADC_RES_16BIT,
46 },
47};
48
49#ifdef __cplusplus
50}
51#endif
52
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition adc_params.h:29
#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.
Board specific definitions for the USB-KW41Z.
Direct mapped ADC configuration values.
Definition periph.h:62