Loading...
Searching...
No Matches
BastWAN board

Support for the BASTWAN SAM R34 board. More...

Detailed Description

Support for the BASTWAN SAM R34 board.

Files

file  board.h
 Support for the BASTWAN SAM R34 board.
 
file  gpio_params.h
 Board specific configuration of direct mapped GPIOs.
 
file  periph_conf.h
 Peripheral MCU configuration for the bastwan board.
 

Semtech SX1276 configuration

#define SX127X_PARAM_SPI   (SPI_DEV(1))
 
#define SX127X_PARAM_SPI_NSS   GPIO_PIN(PB, 31) /* D10 */
 
#define SX127X_PARAM_RESET   GPIO_PIN(PB, 15) /* A0 */
 
#define SX127X_PARAM_DIO0   GPIO_PIN(PB, 16) /* D2 */
 
#define SX127X_PARAM_DIO1   GPIO_PIN(PA, 11) /* D3 */
 
#define SX127X_PARAM_DIO2   GPIO_PIN(PA, 12) /* D4 */
 
#define SX127X_PARAM_DIO3   GPIO_PIN(PB, 17) /* D5 */
 
#define SX127X_PARAM_PASELECT   (SX127X_PA_RFO)
 

Board specific configuration

#define TCXO_PWR_PIN   GPIO_PIN(PB, 3)
 
#define TX_OUTPUT_SEL_PIN   GPIO_PIN(PA, 13)
 
#define TX_SWITCH_PWR_PIN   GPIO_PIN(PA, 28)
 

LED pin definitions and handlers

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

Macro Definition Documentation

◆ LED0_MASK

#define LED0_MASK   (1 << 22)

Definition at line 65 of file board.h.

◆ LED0_OFF

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

Definition at line 67 of file board.h.

◆ LED0_ON

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

Definition at line 66 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 22)

Definition at line 64 of file board.h.

◆ LED0_TOGGLE

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

Definition at line 68 of file board.h.

◆ LED_PORT

#define LED_PORT   PORT->Group[0]

Definition at line 63 of file board.h.

◆ SX127X_PARAM_DIO0

#define SX127X_PARAM_DIO0   GPIO_PIN(PB, 16) /* D2 */

Definition at line 43 of file board.h.

◆ SX127X_PARAM_DIO1

#define SX127X_PARAM_DIO1   GPIO_PIN(PA, 11) /* D3 */

Definition at line 44 of file board.h.

◆ SX127X_PARAM_DIO2

#define SX127X_PARAM_DIO2   GPIO_PIN(PA, 12) /* D4 */

Definition at line 45 of file board.h.

◆ SX127X_PARAM_DIO3

#define SX127X_PARAM_DIO3   GPIO_PIN(PB, 17) /* D5 */

Definition at line 46 of file board.h.

◆ SX127X_PARAM_PASELECT

#define SX127X_PARAM_PASELECT   (SX127X_PA_RFO)

Definition at line 47 of file board.h.

◆ SX127X_PARAM_RESET

#define SX127X_PARAM_RESET   GPIO_PIN(PB, 15) /* A0 */

Definition at line 42 of file board.h.

◆ SX127X_PARAM_SPI

#define SX127X_PARAM_SPI   (SPI_DEV(1))

Definition at line 40 of file board.h.

◆ SX127X_PARAM_SPI_NSS

#define SX127X_PARAM_SPI_NSS   GPIO_PIN(PB, 31) /* D10 */

Definition at line 41 of file board.h.

◆ TCXO_PWR_PIN

#define TCXO_PWR_PIN   GPIO_PIN(PB, 3)

Definition at line 54 of file board.h.

◆ TX_OUTPUT_SEL_PIN

#define TX_OUTPUT_SEL_PIN   GPIO_PIN(PA, 13)

Definition at line 55 of file board.h.

◆ TX_SWITCH_PWR_PIN

#define TX_SWITCH_PWR_PIN   GPIO_PIN(PA, 28)

Definition at line 56 of file board.h.