board.h File Reference

Board definitions for the rss2 256rfr2 board. More...

Detailed Description

Board definitions for the rss2 256rfr2 board.

Author
Robert Olsson rools.nosp@m.s@kt.nosp@m.h.se

Definition in file board.h.

#include "cpu.h"
#include "periph/gpio.h"
#include "at24mac.h"
#include "net/eui_provider.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

static int _at24mac_get_eui64 (const void *arg, eui64_t *addr)
 AT24Mac provides a EUI-64, this is also printed on the board.
 
void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

AT24MAC602 configuration

#define AT24MAC_PARAM_I2C_DEV   I2C_DEV(0)
 
#define AT24MAC_PARAM_TYPE   AT24MAC6XX
 

EUI-64 sources on the board

     AT24Mac is present on the board
#define EUI64_PROVIDER_FUNC   _at24mac_get_eui64
 
#define EUI64_PROVIDER_TYPE   NETDEV_AT86RF2XX
 
#define EUI64_PROVIDER_INDEX   0
 

LED pin definitions and handlers

#define LED_PORT   PORTE
 
#define LED_PORT_DDR   DDRE
 
#define LED0_PIN   GPIO_PIN(PORT_E, 4) /* RED */
 
#define LED1_PIN   GPIO_PIN(PORT_E, 3) /* YELLOW */
 
#define LED0_MASK   (1 << 4)
 
#define LED1_MASK   (1 << 3)
 
#define LED0_MODE   GPIO_OUT
 
#define LED0_OFF   (LED_PORT |= LED0_MASK)
 
#define LED0_ON   (LED_PORT &= ~LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT ^= LED0_MASK)
 
#define LED1_MODE   GPIO_OUT
 
#define LED1_OFF   (LED_PORT |= LED1_MASK)
 
#define LED1_ON   (LED_PORT &= ~LED1_MASK)
 
#define LED1_TOGGLE   (LED_PORT ^= LED1_MASK)
 

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

#define LED_PANIC   LED0_ON
 

DS18 pins OW_BUS_0

#define DS18_PARAM_PIN   GPIO_PIN(PORT_D, 7)
 
#define DS18_PARAM_PULL   (GPIO_IN_PU)
 

xtimer configuration values

#define XTIMER_DEV   TIMER_DEV(0)
 
#define XTIMER_CHAN   (0)
 
#define XTIMER_WIDTH   (16)
 
#define XTIMER_HZ   (62500UL)
 

Indicate Watchdog cleared in bootloader an

AVR CPUs need to reset the Watchdog as fast as possible.

This flag indicates that the watchdog is reset in the bootloader and that the MCUSR value is stored in register 0 (r0)

#define BOOTLOADER_CLEARS_WATCHDOG_AND_PASSES_MCUSR   0
 

CPU clock scale for avr-rss2

#define CPU_ATMEGA_CLK_SCALE_INIT   CPU_ATMEGA_CLK_SCALE_DIV1
 

User button configuration

#define MODULE_ATMEGA_PCINT0
 
#define BTN0_PIN   GPIO_PIN(PORT_B, 0)
 
#define BTN0_MODE   GPIO_IN