Loading...
Searching...
No Matches
arduino_iomap.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Federico Pellegrin
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 "board.h"
21#include "periph/adc.h"
22#include "periph/uart.h"
23#include "periph_cpu.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define ARDUINO_UART_DEV UART_DEV(0)
40#define ARDUINO_PIN_0 LED0_PIN
41#define ARDUINO_PIN_1 BTN0_PIN
42
43#define ARDUINO_PIN_LAST 1
50#define ARDUINO_A0 ADC_LINE(0)
51#define ARDUINO_A1 ADC_LINE(1)
52#define ARDUINO_A2 ADC_LINE(2)
53
54#define ARDUINO_ANALOG_PIN_LAST 2
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* ARDUINO_IOMAP_H */
Low-level ADC peripheral driver interface definitions.
Low-level UART peripheral driver interface definition.
Board specific definitions for the Zigduino board.