Loading...
Searching...
No Matches
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
17
18#include "board.h"
19#include "saul/periph.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29{
30 {
31 .name = "A0",
32 .line = ADC_LINE(0),
33 .res = ADC_RES_16BIT,
34 },
35 {
36 .name = "A1",
37 .line = ADC_LINE(1),
38 .res = ADC_RES_16BIT,
39 },
40 {
41 .name = "A2",
42 .line = ADC_LINE(2),
43 .res = ADC_RES_16BIT,
44 },
45 {
46 .name = "A3",
47 .line = ADC_LINE(3),
48 .res = ADC_RES_16BIT,
49 },
50};
51
52#ifdef __cplusplus
53}
54#endif
55
static const saul_adc_params_t saul_adc_params[]
ADC configuration.
Definition adc_params.h:29
Board specific definitions for the FRDM-KL43Z.
#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