67#ifndef ARDUINO_UART_DEV
71#define ARDUINO_UART_DEV UART_DEV(0)
125#if MODULE_PERIPH_ADC || DOXYGEN
137#if MODULE_PERIPH_PWM || DOXYGEN
146#ifndef ARDUINO_PWM_FREQU
147#define ARDUINO_PWM_FREQU (1000U)
153#define ARDUINO_PWM_MODE PWM_LEFT
158#define ARDUINO_PWM_STEPS (256U)
Configuration of the Arduino API for Arduino Atmega boards.
Arduino Serial Interface.
Low-level GPIO peripheral driver interface definitions.
MAYBE_INLINE unsigned irq_disable(void)
This function sets the IRQ disable bit in the status register.
MAYBE_INLINE unsigned irq_enable(void)
This function clears the IRQ disable bit in the status register.
void delayMicroseconds(unsigned long usec)
Sleep for a given amount of time [microseconds].
int analogRead(int pin)
Read the current value of the given analog pin.
void delay(unsigned long msec)
Sleep for a given amount of time [milliseconds].
unsigned long millis()
Returns the number of milliseconds since start.
static void interrupts(void)
Enables interrupts.
#define ARDUINO_UART_DEV
UART device to use for Arduino serial.
void analogWrite(int pin, int value)
Write an analog value to a pin.
unsigned long micros()
Returns the number of microseconds since start.
static SerialPort Serial(ARDUINO_UART_DEV)
Primary serial port (mapped to ARDUINO_UART_DEV)
uint8_t byte
Arduino byte data type definion.
void pinMode(int pin, int mode)
Configure a pin as either input or output.
void digitalWrite(int pin, int state)
Set the value for the given pin.
int digitalRead(int pin)
Read the current state of the given pin.
static void noInterrupts(void)
Disables interrupts.
bool boolean
Arduino boolean data type definion.
@ OUTPUT
configure pin as output
@ INPUT_PULLUP
configure pin as input with pull-up resistor
@ INPUT
configure pin as input
Definition of the Arduino 'Serial' interface.