Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Federico Pellegrin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
15
16#include "board.h"
17#include "periph_cpu.h"
18#include "periph/adc.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#define ARDUINO_PIN_0 LED0_PIN
29#define ARDUINO_PIN_1 LED1_PIN
30#define ARDUINO_PIN_2 PB0_PIN
31
32#ifdef PB1_PIN
33# define ARDUINO_PIN_3 PB1_PIN
34# define ARDUINO_PIN_LAST 3
35#else
36# define ARDUINO_PIN_LAST 2
37#endif
39
44#define ARDUINO_A0 ADC_LINE(0)
45
46#define ARDUINO_ANALOG_PIN_LAST 0
48
49#ifdef __cplusplus
50}
51#endif
52
Low-level ADC peripheral driver interface definitions.