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/adc.h"
18#include "periph/uart.h"
19#include "periph_cpu.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define ARDUINO_UART_DEV UART_DEV(0)
31
36#define ARDUINO_PIN_0 LED0_PIN
37#define ARDUINO_PIN_1 BTN0_PIN
38
39#define ARDUINO_PIN_LAST 1
41
46#define ARDUINO_A0 ADC_LINE(0)
47#define ARDUINO_A1 ADC_LINE(1)
48#define ARDUINO_A2 ADC_LINE(2)
49
50#define ARDUINO_ANALOG_PIN_LAST 2
52
53#ifdef __cplusplus
54}
55#endif
56
Low-level ADC peripheral driver interface definitions.
Board specific definitions for the Atmel SAM L21 Xplained Pro board.
Low-level UART peripheral driver interface definition.