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

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

Detailed Description

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

Author
Thomas Eichinger thoma.nosp@m.s.ei.nosp@m.ching.nosp@m.er@f.nosp@m.u-ber.nosp@m.lin..nosp@m.de
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph_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.
 

xtimer configuration

#define XTIMER_DEV   TIMER_DEV(1)
 
#define XTIMER_CHAN   (0)
 

ztimer configuration

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER
 
#define CONFIG_ZTIMER_USEC_DEV   TIMER_DEV(1)
 
#define CONFIG_ZTIMER_USEC_MIN   (10)
 

AT86RF233 configuration

{spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}

#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)
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(0, 19)
 
#define LED_PORT   PORT->Group[0]
 
#define LED0_MASK   (1 << 19)
 
#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)
 

SW0 (Button) pin definitions

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

Antenna configuration pin interface

#define RFCTL1_PIN   GPIO_PIN(0, 9)
 
#define RFCTL2_PIN   GPIO_PIN(0, 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 56 of file board.h.

◆ AT86RF2XX_PARAM_INT

#define AT86RF2XX_PARAM_INT   GPIO_PIN(PB, 0)

Definition at line 57 of file board.h.

◆ AT86RF2XX_PARAM_RESET

#define AT86RF2XX_PARAM_RESET   GPIO_PIN(PB, 15)

Definition at line 59 of file board.h.

◆ AT86RF2XX_PARAM_SLEEP

#define AT86RF2XX_PARAM_SLEEP   GPIO_PIN(PA, 20)

Definition at line 58 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 80 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(0, 28)

Definition at line 79 of file board.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   TIMER_DEV(1)

Definition at line 46 of file board.h.

◆ CONFIG_ZTIMER_USEC_MIN

#define CONFIG_ZTIMER_USEC_MIN   (10)

Definition at line 48 of file board.h.

◆ CONFIG_ZTIMER_USEC_TYPE

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER

Definition at line 45 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 19)

Definition at line 68 of file board.h.

◆ LED0_OFF

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

Definition at line 71 of file board.h.

◆ LED0_ON

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

Definition at line 70 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(0, 19)

Definition at line 65 of file board.h.

◆ LED0_TOGGLE

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

Definition at line 72 of file board.h.

◆ LED_PORT

#define LED_PORT   PORT->Group[0]

Definition at line 67 of file board.h.

◆ RFCTL1_PIN

#define RFCTL1_PIN   GPIO_PIN(0, 9)

Definition at line 87 of file board.h.

◆ RFCTL2_PIN

#define RFCTL2_PIN   GPIO_PIN(0, 12)

Definition at line 88 of file board.h.

◆ RFCTL_ANTENNA_DEFAULT

#define RFCTL_ANTENNA_DEFAULT   RFCTL_ANTENNA_BOARD

Definition at line 104 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 38 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   TIMER_DEV(1)

Definition at line 37 of file board.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Antenna configuration values.

Definition at line 94 of file board.h.