Loading...
Searching...
No Matches
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 dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

AT24MAC602 configuration

#define AT24MAC_PARAM_I2C_DEV   I2C_DEV(0)
 
#define AT24MAC_PARAM_TYPE   AT24MAC6XX
 

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 BTN0_PIN   GPIO_PIN(PORT_B, 0)
 
#define BTN0_MODE   GPIO_IN
 

Macro Definition Documentation

◆ AT24MAC_PARAM_I2C_DEV

#define AT24MAC_PARAM_I2C_DEV   I2C_DEV(0)

Definition at line 34 of file board.h.

◆ AT24MAC_PARAM_TYPE

#define AT24MAC_PARAM_TYPE   AT24MAC6XX

Definition at line 35 of file board.h.

◆ BOOTLOADER_CLEARS_WATCHDOG_AND_PASSES_MCUSR

#define BOOTLOADER_CLEARS_WATCHDOG_AND_PASSES_MCUSR   0

Definition at line 95 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN

Definition at line 110 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_B, 0)

Definition at line 109 of file board.h.

◆ CPU_ATMEGA_CLK_SCALE_INIT

#define CPU_ATMEGA_CLK_SCALE_INIT   CPU_ATMEGA_CLK_SCALE_DIV1

Definition at line 102 of file board.h.

◆ DS18_PARAM_PIN

#define DS18_PARAM_PIN   GPIO_PIN(PORT_D, 7)

Definition at line 73 of file board.h.

◆ DS18_PARAM_PULL

#define DS18_PARAM_PULL   (GPIO_IN_PU)

Definition at line 74 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 4)

Definition at line 48 of file board.h.

◆ LED0_MODE

#define LED0_MODE   GPIO_OUT

Definition at line 51 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_PORT |= LED0_MASK)

Definition at line 52 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_PORT &= ~LED0_MASK)

Definition at line 53 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_E, 4) /* RED */

Definition at line 45 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_PORT ^= LED0_MASK)

Definition at line 54 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 3)

Definition at line 49 of file board.h.

◆ LED1_MODE

#define LED1_MODE   GPIO_OUT

Definition at line 56 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED_PORT |= LED1_MASK)

Definition at line 57 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED_PORT &= ~LED1_MASK)

Definition at line 58 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PORT_E, 3) /* YELLOW */

Definition at line 46 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED_PORT ^= LED1_MASK)

Definition at line 59 of file board.h.

◆ LED_PANIC

#define LED_PANIC   LED0_ON

Definition at line 66 of file board.h.

◆ LED_PORT

#define LED_PORT   PORTE

Definition at line 42 of file board.h.

◆ LED_PORT_DDR

#define LED_PORT_DDR   DDRE

Definition at line 43 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 82 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   TIMER_DEV(0)

Definition at line 81 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (62500UL)

Definition at line 84 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 83 of file board.h.