1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/arduino/include/SPI.h
Marian Buschsieweke cc50da690b
sys/arduino: Added SPI interface
Added an Arduino compatible SPI API on top of RIOT's SPI API.
2019-11-07 13:04:46 +01:00

45 lines
833 B
C

/*
* Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup sys_arduino
* @{
*
* @file
* @brief Wrapper to access the definition of the Arduino 'SPI' interface
*
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/
#ifndef SPI_H
#define SPI_H
#ifndef MODULE_PERIPH_SPI
#error "No SPI support on your board"
#endif
#ifdef __cplusplus
#include "spiport.hpp"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef ARDUINO_SPI_INTERFACE
#define ARDUINO_SPI_INTERFACE 0 /**< Number of the SPI dev to make available to Arduino code */
#endif
#ifdef __cplusplus
}
#endif
#endif /* SPI_H */
/** @} */