1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-19 11:33:51 +01:00
RIOT/boards/common/silabs/include/arduino_iomap.h
2025-07-18 14:23:37 +02:00

50 lines
835 B
C

/*
* SPDX-FileCopyrightText: 2018 Federico Pellegrin
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup boards_common_silabs
* @brief SiLabs Boards configuration for the Arduino API
* @file
* @author Federico Pellegrin <fede@evolware.org>
* @{
*/
#include "board.h"
#include "periph_cpu.h"
#include "periph/adc.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Arduino's digital pins mappings
* @{
*/
#define ARDUINO_PIN_0 LED0_PIN
#define ARDUINO_PIN_1 LED1_PIN
#define ARDUINO_PIN_2 PB0_PIN
#define ARDUINO_PIN_3 PB1_PIN
#define ARDUINO_PIN_LAST 3
/** @} */
/**
* @name Arduino's analog pins mappings
* @{
*/
#define ARDUINO_A0 ADC_LINE(0)
#define ARDUINO_ANALOG_PIN_LAST 0
/** @} */
#ifdef __cplusplus
}
#endif
/** @} */