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
* Copyright (C) 2014-2016 Freie Universität Berlin
3
* 2015 Zolertia SL
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
22
#ifndef CFG_ADC_DEFAULT_H
23
#define CFG_ADC_DEFAULT_H
24
25
#include "periph_cpu.h"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
#define SOC_ADC_ADCCON3_EREF SOC_ADC_ADCCON3_EREF_AVDD5
36
37
static
const
adc_conf_t
adc_config[] = {
38
GPIO_PIN
(
PORT_A
, 5),
39
GPIO_PIN
(
PORT_A
, 4),
40
/* voltage divider with 5/3 relationship to allow 5V sensors */
41
GPIO_PIN
(
PORT_A
, 2),
42
};
43
44
#define ADC_NUMOF ARRAY_SIZE(adc_config)
47
#ifdef __cplusplus
48
}
/* end extern "C" */
49
#endif
50
51
#endif
/* CFG_ADC_DEFAULT_H */
PORT_A
@ PORT_A
port A
Definition
periph_cpu.h:47
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:46
adc_conf_t
ADC device configuration.
Definition
periph_cpu.h:379
Generated on Sat Nov 16 2024 04:50:49 by
1.9.8