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

Board specific definitions for the Atmega256RFR2 Xplained Pro. More...

Detailed Description

Board specific definitions for the Atmega256RFR2 Xplained Pro.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file board.h.

#include "cpu.h"
#include "periph/gpio.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define STDIO_UART_DEV   (UART_DEV(1))
 Use the UART 1 for STDIO on this board.
 

xtimer configuration values

Xtimer runs at 16MHz / 64 = 250kHz

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

ztimer configuration values

#define CONFIG_ZTIMER_USEC_ADJUST_SET   (132)
 
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (120)
 

Macros for controlling the on-board LED

#define LED0_PIN   GPIO_PIN(PORT_B, 4)
 
#define LED0_MODE   GPIO_OUT
 
#define LED0_ENABLE_PORT   DDRB |= LED0_PIN
 
#define LED0_ON   PORTB |= LED0_PIN
 
#define LED0_OFF   PORTB &= ~LED0_PIN
 
#define LED0_TOGGLE   PORTB ^= LED0_PIN
 

Button pin configuration

#define BTN0_PIN   GPIO_PIN(PORT_E, 4)
 
#define BTN0_MODE   GPIO_IN_PU
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 70 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_E, 4)

Definition at line 69 of file board.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SET

#define CONFIG_ZTIMER_USEC_ADJUST_SET   (132)

Definition at line 49 of file board.h.

◆ CONFIG_ZTIMER_USEC_ADJUST_SLEEP

#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP   (120)

Definition at line 50 of file board.h.

◆ LED0_ENABLE_PORT

#define LED0_ENABLE_PORT   DDRB |= LED0_PIN

Definition at line 59 of file board.h.

◆ LED0_MODE

#define LED0_MODE   GPIO_OUT

Definition at line 58 of file board.h.

◆ LED0_OFF

#define LED0_OFF   PORTB &= ~LED0_PIN

Definition at line 61 of file board.h.

◆ LED0_ON

#define LED0_ON   PORTB |= LED0_PIN

Definition at line 60 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_B, 4)

Definition at line 57 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   PORTB ^= LED0_PIN

Definition at line 62 of file board.h.

◆ STDIO_UART_DEV

#define STDIO_UART_DEV   (UART_DEV(1))

Use the UART 1 for STDIO on this board.

Definition at line 32 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 42 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (250000UL)

Definition at line 41 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 40 of file board.h.