Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cfg_adc_default.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2014-2016 Freie Universität Berlin
3
* SPDX-FileCopyrightText: 2015 Zolertia SL
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
20
21
#include "periph_cpu.h"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define SOC_ADC_ADCCON3_EREF SOC_ADC_ADCCON3_EREF_AVDD5
32
33
static
const
adc_conf_t
adc_config[] = {
34
GPIO_PIN
(
PORT_A
, 5),
35
GPIO_PIN
(
PORT_A
, 4),
36
/* voltage divider with 5/3 relationship to allow 5V sensors */
37
GPIO_PIN
(
PORT_A
, 2),
38
};
39
40
#define ADC_NUMOF ARRAY_SIZE(adc_config)
42
43
#ifdef __cplusplus
44
}
/* end extern "C" */
45
#endif
46
PORT_A
@ PORT_A
port A
Definition
periph_cpu.h:46
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:45
adc_conf_t
ADC device configuration.
Definition
periph_cpu.h:377
Generated on Wed Aug 27 2025 20:40:39 by
1.13.2