Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Gunar Schorcht
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
17#ifndef ARDUINO_IOMAP_H
18#define ARDUINO_IOMAP_H
19
20#include "periph/adc.h"
21#include "periph/gpio.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
30#define ARDUINO_LED (6)
31
36#define ARDUINO_PIN_0 GPIO1 /* D0 (RxD) */
37#define ARDUINO_PIN_1 GPIO3 /* D1 (TxD) */
38#define ARDUINO_PIN_2 GPIO0 /* D2 */
39#define ARDUINO_PIN_3 GPIO4 /* D3 */
40#if defined(CONFIG_FLASHMODE_QIO) || defined(CONFIG_FLASHMODE_QOUT)
41# define ARDUINO_PIN_4 GPIO9 /* D4 */
42# define ARDUINO_PIN_5 GPIO10 /* D5 */
43#endif
44#define ARDUINO_PIN_6 GPIO5 /* D6 */
45#define ARDUINO_PIN_10 GPIO15 /* D10 (CS0) */
46#define ARDUINO_PIN_11 GPIO13 /* D11 (MOSI) */
47#define ARDUINO_PIN_12 GPIO12 /* D12 (MISO) */
48#define ARDUINO_PIN_13 GPIO14 /* D13 (SCK) */
49
50#define ARDUINO_PIN_18 GPIO2 /* D18 (A4 / SDA) */
51#define ARDUINO_PIN_19 GPIO14 /* D19 (A5 / SCL) */
52
53#define ARDUINO_PIN_LAST 19
60#define ARDUINO_PIN_A4 ARDUINO_PIN_18
61#define ARDUINO_PIN_A5 ARDUINO_PIN_19
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* ARDUINO_IOMAP_H */
Low-level ADC peripheral driver interface definitions.
Low-level GPIO peripheral driver interface definitions.