Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
arduino_iomap.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2017 HAW Hamburg
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
21
#include "
periph/gpio.h
"
22
#include "
periph/adc.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define ARDUINO_PIN_0 GPIO_PIN(PORT_D, 12)
33
#define ARDUINO_PIN_1 GPIO_PIN(PORT_D, 13)
34
#define ARDUINO_PIN_2 GPIO_PIN(PORT_D, 14)
35
#define ARDUINO_PIN_3 GPIO_PIN(PORT_D, 15)
36
#define ARDUINO_PIN_4 GPIO_PIN(PORT_A, 12)
37
#define ARDUINO_PIN_5 GPIO_PIN(PORT_A, 15)
38
#define ARDUINO_PIN_6 GPIO_PIN(PORT_B, 1)
39
#define ARDUINO_PIN_7 GPIO_PIN(PORT_B, 2)
40
41
#define ARDUINO_PIN_LAST 7
48
#define ARDUINO_A0 ADC_LINE(0)
49
#define ARDUINO_A1 ADC_LINE(1)
50
#define ARDUINO_A2 ADC_LINE(2)
51
#define ARDUINO_A3 ADC_LINE(3)
52
53
#define ARDUINO_ANALOG_PIN_LAST 3
56
#ifdef __cplusplus
57
}
58
#endif
59
adc.h
Low-level ADC peripheral driver interface definitions.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1