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
 

Variable Documentation

◆ motor_driver_config

const motor_driver_config_t motor_driver_config[]
static
Initial value:
= {
{
.pwm_dev = 1,
.mode_brake = MOTOR_BRAKE_HIGH,
.pwm_mode = PWM_LEFT,
.pwm_frequency = 20000U,
.pwm_resolution = 2250U,
.nb_motors = 1,
.motors = {
{
.pwm_channel = 0,
.gpio_enable = 0,
.gpio_dir0 = ARDUINO_PIN_15,
.gpio_dir1_or_brake = 0,
.gpio_dir_reverse = 0,
.gpio_enable_invert = 0,
.gpio_brake_invert = 0,
},
},
.cb = NULL,
},
}
@ MOTOR_DRIVER_1_DIR
Single GPIO for direction, \ no BRAKE.
Definition: motor_driver.h:117
@ MOTOR_BRAKE_HIGH
High stage brake.
Definition: motor_driver.h:128
@ PWM_LEFT
left aligned
Definition: periph_conf.h:217

Definition at line 59 of file board.h.