Loading...
Searching...
No Matches
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
19#include "board.h"
20#include "saul/periph.h"
21#include "periph/adc.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31{
32 {
33 .name = "ADC1",
34 .line = ADC_LINE(0),
35 .res = ADC_RES_12BIT,
36 },
37 {
38 .name = "ADC2",
39 .line = ADC_LINE(1),
40 .res = ADC_RES_12BIT,
41 },
42 {
43 .name = "ADC3",
44 .line = ADC_LINE(2),
45 .res = ADC_RES_12BIT,
46 }
47};
48
49#ifdef __cplusplus
50}
51#endif
52
Low-level ADC peripheral driver interface definitions.
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_12BIT
ADC resolution: 12 bit.
Definition adc.h:96
Parameter definitions for mapping peripherals directly to SAUL.
Board specific definitions for the RE-Mote board Revision B.
Direct mapped ADC configuration values.
Definition periph.h:62