Loading...
Searching...
No Matches
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)
 

Macro Definition Documentation

◆ CONFIG_ZTIMER_USEC_ADJUST_SET

#define CONFIG_ZTIMER_USEC_ADJUST_SET   (128)

Definition at line 119 of file board_common.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SLEEP

#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (116)

Definition at line 122 of file board_common.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0))

Definition at line 115 of file board_common.h.

◆ CONFIG_ZTIMER_USEC_FREQ

#define CONFIG_ZTIMER_USEC_FREQ   (250000LU)

Definition at line 116 of file board_common.h.

◆ CONFIG_ZTIMER_USEC_TYPE

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER

Definition at line 114 of file board_common.h.

◆ CONFIG_ZTIMER_USEC_WIDTH

#define CONFIG_ZTIMER_USEC_WIDTH   (16)

Definition at line 117 of file board_common.h.

◆ CPU_ATMEGA_CLK_SCALE_INIT

#define CPU_ATMEGA_CLK_SCALE_INIT   CPU_ATMEGA_CLK_SCALE_DIV1

Definition at line 98 of file board_common.h.

◆ LED_PANIC

#define LED_PANIC   LED0_ON

Definition at line 91 of file board_common.h.

◆ STDIO_UART_BAUDRATE

#define STDIO_UART_BAUDRATE   (9600U)

Definition at line 42 of file board_common.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 107 of file board_common.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (250000UL)

Definition at line 106 of file board_common.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 105 of file board_common.h.