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.

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 
#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)
 

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