Configuration of the Arduino API for Arduino Atmega boards. More...
Configuration of the Arduino API for Arduino Atmega boards.
Definition in file arduino_board.h.
|The on-board LED is connected to pin 13 on this board. |
|PWM frequency. |
|F_CPU defines the CPU frequency in Hz. More...|
|static const gpio_t||arduino_pinmap |
|Look-up table for the Arduino's digital pins. |
|static const adc_t||arduino_analog_map |
|Look-up table for the Arduino's analog pins. More...|
|static const arduino_pwm_t||arduino_pwm_list |
|List of PWM GPIO mappings. More...|
|#define F_CPU CLOCK_CORECLOCK|
F_CPU defines the CPU frequency in Hz.
This is used in AVR's libc delay.h and setbaud.h
In RIOT delay() has a different implementation using ztimer, and F_CPU is already defined when using setbaud.h (see cpu/atmega_common/periph/uart.c)
However Arduino libraries and sketches may expect F_CPU to be defined and fail otherwise (for example the Arduino SDI-12 package expects this, for AVR cpus). For this reason we define F_CPU here, if not already defined.
Look-up table for the Arduino's analog pins.
List of PWM GPIO mappings.