Loading...
Searching...
No Matches
Atmel SAM R30 Xplained Pro

Support for the Atmel SAM R30 Xplained Pro board. More...

Detailed Description

Support for the Atmel SAM R30 Xplained Pro board.

Files

file  board.h
 Board specific definitions for the Atmel SAM R30 Xplained Pro board.
 
file  gpio_params.h
 Board specific configuration of direct mapped GPIOs.
 
file  periph_conf.h
 Peripheral MCU configuration for the Atmel SAM R30 Xplained Pro board.
 

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
 

Macro Definition Documentation

◆ AT86RF2XX_PARAM_CS

#define AT86RF2XX_PARAM_CS   GPIO_PIN(PB, 31)

Definition at line 36 of file board.h.

◆ AT86RF2XX_PARAM_INT

#define AT86RF2XX_PARAM_INT   GPIO_PIN(PB, 0)

Definition at line 37 of file board.h.

◆ AT86RF2XX_PARAM_RESET

#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PB, 15)

Definition at line 39 of file board.h.

◆ AT86RF2XX_PARAM_SLEEP

#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PA, 20)

Definition at line 38 of file board.h.

◆ AT86RF2XX_PARAM_SPI

#define AT86RF2XX_PARAM_SPI   SPI_DEV(0)

Definition at line 35 of file board.h.

◆ AT86RF2XX_PARAM_SPI_CLK

#define AT86RF2XX_PARAM_SPI_CLK   SPI_CLK_5MHZ

Definition at line 40 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 67 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PA, 28)

Definition at line 66 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 18)

Definition at line 50 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_PORT.OUTSET.reg = LED0_MASK)

Definition at line 52 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_PORT.OUTCLR.reg = LED0_MASK)

Definition at line 51 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 18)

Definition at line 49 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_PORT.OUTTGL.reg = LED0_MASK)

Definition at line 53 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 19)

Definition at line 56 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED_PORT.OUTSET.reg = LED1_MASK)

Definition at line 58 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED_PORT.OUTCLR.reg = LED1_MASK)

Definition at line 57 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PA, 19)

Definition at line 55 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED_PORT.OUTTGL.reg = LED1_MASK)

Definition at line 59 of file board.h.

◆ LED_PORT

#define LED_PORT   PORT->Group[0]

Definition at line 47 of file board.h.

◆ RFCTL1_PIN

#define RFCTL1_PIN   GPIO_PIN(PA, 9)

Definition at line 74 of file board.h.

◆ RFCTL2_PIN

#define RFCTL2_PIN   GPIO_PIN(PA, 12)

Definition at line 75 of file board.h.

◆ RFCTL_ANTENNA_DEFAULT

#define RFCTL_ANTENNA_DEFAULT   RFCTL_ANTENNA_BOARD

Definition at line 91 of file board.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Antenna configuration values.

Definition at line 81 of file board.h.