1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/arduino: add type definitions often used

boolean and byte are data types defined in Arduino.h and very often used in Arduino code.
This commit is contained in:
Gunar Schorcht 2019-09-09 01:51:09 +02:00
parent 178d0aace2
commit e942338f78

View File

@ -22,12 +22,23 @@
#define ARDUINO_HPP
extern "C" {
#include <stdint.h>
#include "periph/gpio.h"
#include "arduino_board.h"
}
#include "serialport.hpp"
/**
* @brief Ardunio boolean data type definion
*/
typedef bool boolean;
/**
* @brief Ardunio byte data type definion
*/
typedef uint8_t byte;
/**
* @brief Possible pin configurations
*/