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

Board specific definitions for the Microchip SAM R34 Xplained Pro board. More...

Detailed Description

Board specific definitions for the Microchip SAM R34 Xplained Pro board.

Author
Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com

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.

Semtech SX1276 configuration

#define SX127X_PARAM_SPI   SPI_DEV(0)
 internal SPI
 
#define SX127X_PARAM_SPI_NSS   GPIO_PIN(1, 31)
 D10.
 
#define SX127X_PARAM_RESET   GPIO_PIN(1, 15)
 A0

 
#define SX127X_PARAM_DIO0   GPIO_PIN(1, 16)
 D2

 
#define SX127X_PARAM_DIO1   GPIO_PIN(0, 11)
 D3

 
#define SX127X_PARAM_DIO2   GPIO_PIN(0, 12)
 D4

 
#define SX127X_PARAM_DIO3   GPIO_PIN(1, 17)
 D5

 
#define SX127X_PARAM_PASELECT   SX127X_PA_RFO
 no boost
 

Board specific configuration

#define TCXO_PWR_PIN   GPIO_PIN(PA, 9)
 32 MHz oscillator for radio enable
 
#define TX_OUTPUT_SEL_PIN   GPIO_PIN(PA, 13)
 BAND_SEL.
 

LED pin definitions and handlers

#define LED_PORT   PORT->Group[0]
 GPIO port

 
#define LED0_PIN   GPIO_PIN(PA, 18)
 GPIO pin

 
#define LED0_MASK   (1 << 18)
 GPIO pin mask

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

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

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

 
#define LED1_PIN   GPIO_PIN(PA, 19)
 GPIO pin

 
#define LED1_MASK   (1 << 19)
 GPIO pin mask

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

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

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

 

BTN0 (SW0 Button) pin definitions

#define BTN0_PIN   GPIO_PIN(PA, 28)
 GPIO pin

 
#define BTN0_MODE   GPIO_IN_PU
 Pull Up GPIO

 

MTD configuration

#define MTD_0   mtd_dev_get(0)
 First memory type device.
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Pull Up GPIO

Definition at line 76 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PA, 28)

GPIO pin

Definition at line 75 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 18)

GPIO pin mask

Definition at line 59 of file board.h.

◆ LED0_OFF

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

disable LED

Definition at line 61 of file board.h.

◆ LED0_ON

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

enable LED

Definition at line 60 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 18)

GPIO pin

Definition at line 58 of file board.h.

◆ LED0_TOGGLE

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

toggle LED

Definition at line 62 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 19)

GPIO pin mask

Definition at line 65 of file board.h.

◆ LED1_OFF

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

disable LED

Definition at line 67 of file board.h.

◆ LED1_ON

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

enable LED

Definition at line 66 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PA, 19)

GPIO pin

Definition at line 64 of file board.h.

◆ LED1_TOGGLE

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

toggle LED

Definition at line 68 of file board.h.

◆ LED_PORT

#define LED_PORT   PORT->Group[0]

GPIO port

Definition at line 56 of file board.h.

◆ MTD_0

#define MTD_0   mtd_dev_get(0)

First memory type device.

Definition at line 83 of file board.h.

◆ SX127X_PARAM_DIO0

#define SX127X_PARAM_DIO0   GPIO_PIN(1, 16)

D2

Definition at line 37 of file board.h.

◆ SX127X_PARAM_DIO1

#define SX127X_PARAM_DIO1   GPIO_PIN(0, 11)

D3

Definition at line 38 of file board.h.

◆ SX127X_PARAM_DIO2

#define SX127X_PARAM_DIO2   GPIO_PIN(0, 12)

D4

Definition at line 39 of file board.h.

◆ SX127X_PARAM_DIO3

#define SX127X_PARAM_DIO3   GPIO_PIN(1, 17)

D5

Definition at line 40 of file board.h.

◆ SX127X_PARAM_PASELECT

#define SX127X_PARAM_PASELECT   SX127X_PA_RFO

no boost

Definition at line 41 of file board.h.

◆ SX127X_PARAM_RESET

#define SX127X_PARAM_RESET   GPIO_PIN(1, 15)

A0

Definition at line 36 of file board.h.

◆ SX127X_PARAM_SPI

#define SX127X_PARAM_SPI   SPI_DEV(0)

internal SPI

Definition at line 34 of file board.h.

◆ SX127X_PARAM_SPI_NSS

#define SX127X_PARAM_SPI_NSS   GPIO_PIN(1, 31)

D10.

Definition at line 35 of file board.h.

◆ TCXO_PWR_PIN

#define TCXO_PWR_PIN   GPIO_PIN(PA, 9)

32 MHz oscillator for radio enable

Definition at line 48 of file board.h.

◆ TX_OUTPUT_SEL_PIN

#define TX_OUTPUT_SEL_PIN   GPIO_PIN(PA, 13)

BAND_SEL.

Definition at line 49 of file board.h.