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 "motor_driver.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 DC motors with PWM channel and GPIOs

#define MOTOR_DRIVER_NUMOF   ARRAY_SIZE(motor_driver_config)
 
static const motor_driver_config_t motor_driver_config []
 

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