All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Arduino Atmega Common

Shared files and configuration for Arduino Atmega boards. More...

Detailed Description

Shared files and configuration for Arduino Atmega boards.

Files

file  arduino_iomap.h
 Mapping from MCU pins to Arduino pins for Arduino Atmega boards.
 
file  board_common.h
 Common board configuration for Arduino Atmega boards.
 
file  gpio_params.h
 Common configuration of mapped GPIOs for Arduino Atmega boards.
 
file  periph_conf.h
 Common configuration of MCU periphery for Arduino Atmega boards.
 
file  periph_conf_atmega_common.h
 Common configuration of MCU periphery for ATmega boards.
 

STDIO configuration

As the CPU is too slow to handle 115200 baud, we set the default baudrate to 9600 for this board

#define STDIO_UART_BAUDRATE   (9600U)
 

Usage of LED to turn on when a kernel panic occurs.

#define LED_PANIC   LED0_ON
 

CPU clock scale for arduino boards

#define CPU_ATMEGA_CLK_SCALE_INIT   CPU_ATMEGA_CLK_SCALE_DIV1
 

xtimer configuration values

#define XTIMER_WIDTH   (16)
 
#define XTIMER_HZ   (250000UL)
 
#define XTIMER_BACKOFF   (40)
 

ztimer configuration values

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER
 
#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))
 
#define CONFIG_ZTIMER_USEC_FREQ   (250000LU)
 
#define CONFIG_ZTIMER_USEC_WIDTH   (16)
 
#define CONFIG_ZTIMER_USEC_ADJUST_SET   (128)
 
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (116)