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

Board specific definitions for the Atmel SAM R30 Xplained Pro board. More...

Detailed Description

Board specific definitions for the Atmel SAM R30 Xplained Pro board.

Author
Baptiste Clenet bapcl.nosp@m.enet.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

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.

Enumerations

enum  { RFCTL_ANTENNA_BOARD , RFCTL_ANTENNA_EXT }
 Antenna configuration values. More...
 

Functions

void board_antenna_config (uint8_t antenna)
 Set antenna switch.
 

NG_AT86RF212B configuration

#define AT86RF2XX_PARAM_SPI   SPI_DEV(0)
 
#define AT86RF2XX_PARAM_CS   GPIO_PIN(PB, 31)
 
#define AT86RF2XX_PARAM_INT   GPIO_PIN(PB, 0)
 
#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PA, 20)
 
#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PB, 15)
 
#define AT86RF2XX_PARAM_SPI_CLK   SPI_CLK_5MHZ
 

LED pin definitions and handlers

#define LED_PORT   PORT->Group[0]
 
#define LED0_PIN   GPIO_PIN(PA, 18)
 
#define LED0_MASK   (1 << 18)
 
#define LED0_ON   (LED_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_OFF   (LED_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)
 
#define LED1_PIN   GPIO_PIN(PA, 19)
 
#define LED1_MASK   (1 << 19)
 
#define LED1_ON   (LED_PORT.OUTCLR.reg = LED1_MASK)
 
#define LED1_OFF   (LED_PORT.OUTSET.reg = LED1_MASK)
 
#define LED1_TOGGLE   (LED_PORT.OUTTGL.reg = LED1_MASK)
 

BTN0 (SW0 Button) pin definitions

#define BTN0_PIN   GPIO_PIN(PA, 28)
 
#define BTN0_MODE   GPIO_IN_PU
 

Antenna configuration pin interface

#define RFCTL1_PIN   GPIO_PIN(PA, 9)
 
#define RFCTL2_PIN   GPIO_PIN(PA, 12)
 

Default antenna configuration

#define RFCTL_ANTENNA_DEFAULT   RFCTL_ANTENNA_BOARD