1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/ardunio-due: added mapping for analog pins

This commit is contained in:
Hauke Petersen 2017-06-27 14:40:27 +02:00
parent 30ef5d0a30
commit 8286c8f686

View File

@ -23,6 +23,7 @@
#define ARDUINO_PINMAP_H
#include "periph/gpio.h"
#include "periph/adc.h"
#ifdef __cplusplus
extern "C" {
@ -113,6 +114,24 @@ extern "C" {
#define ARDUINO_PIN_78 GPIO_PIN(PB, 23)
/** @ */
/**
* @name Mapping of Ardunino analog pins to RIOT ADC lines
* @{
*/
#define ARDUINO_A0 ADC_LINE(7)
#define ARDUINO_A1 ADC_LINE(6)
#define ARDUINO_A2 ADC_LINE(5)
#define ARDUINO_A3 ADC_LINE(4)
#define ARDUINO_A4 ADC_LINE(3)
#define ARDUINO_A5 ADC_LINE(2)
#define ARDUINO_A6 ADC_LINE(1)
#define ARDUINO_A7 ADC_LINE(0)
#define ARDUINO_A8 ADC_LINE(10)
#define ARDUINO_A9 ADC_LINE(11)
#define ARDUINO_A10 ADC_LINE(12)
#define ARDUINO_A11 ADC_LINE(13)
/** @} */
#ifdef __cplusplus
}
#endif