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
17
18#include "board.h"
19#include "saul/periph.h"
20#include "periph/adc.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30{
31 {
32 .name = "ADC1",
33 .line = ADC_LINE(0),
34 .res = ADC_RES_12BIT,
35 },
36 {
37 .name = "ADC2",
38 .line = ADC_LINE(1),
39 .res = ADC_RES_12BIT,
40 },
41 {
42 .name = "ADC3",
43 .line = ADC_LINE(2),
44 .res = ADC_RES_12BIT,
45 }
46};
47
48#ifdef __cplusplus
49}
50#endif
51
Low-level ADC peripheral driver interface definitions.
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition adc_params.h:29
Support for the Firefly board.
#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.
Direct mapped ADC configuration values.
Definition periph.h:62