Go to the documentation of this file.
27 #include "arduino_board.h"
59 #ifndef ARDUINO_UART_DEV
63 #define ARDUINO_UART_DEV UART_DEV(0)
77 void pinMode(
int pin,
int mode);
101 void delay(
unsigned long msec);
124 #if MODULE_PERIPH_ADC || DOXYGEN
136 #if MODULE_PERIPH_PWM || DOXYGEN
145 #ifndef ARDUINO_PWM_FREQU
146 #define ARDUINO_PWM_FREQU (1000U)
152 #define ARDUINO_PWM_MODE PWM_LEFT
157 #define ARDUINO_PWM_STEPS (256U)
void delayMicroseconds(unsigned long usec)
Sleep for a given amount of time [microseconds].
bool boolean
Arduino boolean data type definion.
@ INPUT_PULLUP
configure pin as input with pull-up resistor
static SerialPort Serial(ARDUINO_UART_DEV)
Primary serial port (mapped to ARDUINO_UART_DEV)
int digitalRead(int pin)
Read the current state of the given pin.
@ OUTPUT
configure pin as output
@ INPUT
configure pin as input
int analogRead(int pin)
Read the current value of the given analog pin.
#define ARDUINO_UART_DEV
UART device to use for Arduino serial.
void digitalWrite(int pin, int state)
Set the value for the given pin.
Definition of the Arduino 'Serial' interface.
Arduino Serial Interface.
void delay(unsigned long msec)
Sleep for a given amount of time [milliseconds].
unsigned long micros()
Returns the number of microseconds since start.
void analogWrite(int pin, int value)
Write an analog value to a pin.
void pinMode(int pin, int mode)
Configure a pin as either input or output.
unsigned long millis()
Returns the number of milliseconds since start.
Low-level GPIO peripheral driver interface definitions.
uint8_t byte
Arduino byte data type definion.