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

Common pin definitions and board configuration options. More...

Detailed Description

Common pin definitions and board configuration options.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file board.h.

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

LED pin definitions and handlers

#define LED0_PIN_NUM   5
 
#define LED0_PORT   GPIO_PORT_A
 GPIO port of LED 0.
 
#define LED0_PORT_NUM   PORT_A
 

User button

#define BTN0_PIN   GPIO_PIN(PORT_C, 13)
 
#define BTN0_MODE   GPIO_IN_PU
 

Describe MRF24J40 radio

#define MRF24J40_PARAM_SPI   SPI_DEV(0)
 
#define MRF24J40_PARAM_SPI_CLK   SPI_CLK_5MHZ
 
#define MRF24J40_PARAM_CS   ARDUINO_PIN_10
 
#define MRF24J40_PARAM_INT   ARDUINO_PIN_7
 
#define MRF24J40_PARAM_RESET   ARDUINO_PIN_5
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 50 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_C, 13)

Definition at line 45 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   5

Definition at line 35 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_A

GPIO port of LED 0.

Definition at line 36 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_A

Definition at line 37 of file board.h.

◆ MRF24J40_PARAM_CS

#define MRF24J40_PARAM_CS   ARDUINO_PIN_10

Definition at line 67 of file board.h.

◆ MRF24J40_PARAM_INT

#define MRF24J40_PARAM_INT   ARDUINO_PIN_7

Definition at line 71 of file board.h.

◆ MRF24J40_PARAM_RESET

#define MRF24J40_PARAM_RESET   ARDUINO_PIN_5

Definition at line 75 of file board.h.

◆ MRF24J40_PARAM_SPI

#define MRF24J40_PARAM_SPI   SPI_DEV(0)

Definition at line 59 of file board.h.

◆ MRF24J40_PARAM_SPI_CLK

#define MRF24J40_PARAM_SPI_CLK   SPI_CLK_5MHZ

Definition at line 63 of file board.h.