Loading...
Searching...
No Matches
board_common.h File Reference

Common board configuration for Arduino Atmega boards. More...

Detailed Description

Common board configuration for Arduino Atmega boards.

Author
Hinnerk van Bruinehsen h.v.b.nosp@m.ruin.nosp@m.ehsen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Laurent Navet laure.nosp@m.nt.n.nosp@m.avet@.nosp@m.gmai.nosp@m.l.com
Thomas Perrot thoma.nosp@m.s.pe.nosp@m.rrot@.nosp@m.tupi.nosp@m..fr

Definition in file board_common.h.

#include "cpu.h"
#include "arduino_pinmap.h"
+ Include dependency graph for board_common.h:

Go to the source code of this file.

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)