board.h File Reference

Pin definitions and board configuration options. More...

Detailed Description

Pin definitions and board configuration options.

Author
Akshai M aksha.nosp@m.i.m@.nosp@m.fu-be.nosp@m.rlin.nosp@m..de
Hauke Petersen devel.nosp@m.@hau.nosp@m.kepet.nosp@m.erse.nosp@m.n.de

Definition in file board.h.

#include "board_nucleo.h"
#include "stm32_leds.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.

Sub-GHz radio (LoRa) configuration

#define SX126X_PARAM_SPI   (SPI_DEV(0))
 

LED pin definitions and handlers

#define LED0_PIN_NUM   15
 
#define LED0_PORT_NUM   PORT_B
 
#define LED1_PIN_NUM   9
 
#define LED1_PORT_NUM   PORT_B
 
#define LED2_PIN_NUM   11
 
#define LED2_PORT_NUM   PORT_B
 

User button

#define BTN0_PIN   GPIO_PIN(PORT_A, 0)
 
#define BTN0_MODE   GPIO_IN_PU
 
#define BTN1_PIN   GPIO_PIN(PORT_A, 1)
 
#define BTN1_MODE   GPIO_IN_PU
 
#define BTN2_PIN   GPIO_PIN(PORT_C, 6)
 
#define BTN2_MODE   GPIO_IN_PU
 

RF 3-port switch (SP3T) control

Refer Section 6.6.3 RF Overview in User Manual (UM2592)

#define FE_CTRL1   GPIO_PIN(PORT_C, 4)
 
#define FE_CTRL2   GPIO_PIN(PORT_C, 5)
 
#define FE_CTRL3   GPIO_PIN(PORT_C, 3)