Loading...
Searching...
No Matches
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   GPIO_PORT_B
 GPIO port of LED 0.
 
#define LED0_PORT_NUM   PORT_B
 
#define LED1_PIN_NUM   9
 
#define LED1_PORT   GPIO_PORT_B
 GPIO port of LED 1.
 
#define LED1_PORT_NUM   PORT_B
 
#define LED2_PIN_NUM   11
 
#define LED2_PORT   GPIO_PORT_B
 GPIO port of LED 2.
 
#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)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 69 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_A, 0)

Definition at line 68 of file board.h.

◆ BTN1_MODE

#define BTN1_MODE   GPIO_IN_PU

Definition at line 71 of file board.h.

◆ BTN1_PIN

#define BTN1_PIN   GPIO_PIN(PORT_A, 1)

Definition at line 70 of file board.h.

◆ BTN2_MODE

#define BTN2_MODE   GPIO_IN_PU

Definition at line 73 of file board.h.

◆ BTN2_PIN

#define BTN2_PIN   GPIO_PIN(PORT_C, 6)

Definition at line 72 of file board.h.

◆ FE_CTRL1

#define FE_CTRL1   GPIO_PIN(PORT_C, 4)

Definition at line 82 of file board.h.

◆ FE_CTRL2

#define FE_CTRL2   GPIO_PIN(PORT_C, 5)

Definition at line 83 of file board.h.

◆ FE_CTRL3

#define FE_CTRL3   GPIO_PIN(PORT_C, 3)

Definition at line 84 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   15

Definition at line 51 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_B

GPIO port of LED 0.

Definition at line 52 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_B

Definition at line 53 of file board.h.

◆ LED1_PIN_NUM

#define LED1_PIN_NUM   9

Definition at line 55 of file board.h.

◆ LED1_PORT

#define LED1_PORT   GPIO_PORT_B

GPIO port of LED 1.

Definition at line 56 of file board.h.

◆ LED1_PORT_NUM

#define LED1_PORT_NUM   PORT_B

Definition at line 57 of file board.h.

◆ LED2_PIN_NUM

#define LED2_PIN_NUM   11

Definition at line 59 of file board.h.

◆ LED2_PORT

#define LED2_PORT   GPIO_PORT_B

GPIO port of LED 2.

Definition at line 60 of file board.h.

◆ LED2_PORT_NUM

#define LED2_PORT_NUM   PORT_B

Definition at line 61 of file board.h.

◆ SX126X_PARAM_SPI

#define SX126X_PARAM_SPI   (SPI_DEV(0))

Definition at line 38 of file board.h.