Board specific definitions for the Crazyflie 2.1 main application MCU. More...

Detailed Description

Board specific definitions for the Crazyflie 2.1 main application MCU.

Author
Leonard Herbst leona.nosp@m.rd.h.nosp@m.erbst.nosp@m.@tu-.nosp@m.dresd.nosp@m.en.d.nosp@m.e

Definition in file board.h.

#include "cpu.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.

Macros for controlling the on-board LEDs.

#define LED0_IS_INVERTED   1
 
#define LED0_PIN_NUM   3 /* LED top right red */
 
#define LED0_PORT   GPIO_PORT_C
 
#define LED0_PORT_NUM   PORT_C
 
#define LED1_IS_INVERTED   1
 
#define LED1_PIN_NUM   2 /* LED top right green */
 
#define LED1_PORT   GPIO_PORT_C
 
#define LED1_PORT_NUM   PORT_C
 
#define LED2_PIN_NUM   2 /* LED bottom left blue */
 
#define LED2_PORT   GPIO_PORT_D
 
#define LED2_PORT_NUM   PORT_D
 
#define LED3_IS_INVERTED   1
 
#define LED3_PIN_NUM   0 /* LED top left red*/
 
#define LED3_PORT   GPIO_PORT_C
 
#define LED3_PORT_NUM   PORT_C
 
#define LED4_IS_INVERTED   1
 
#define LED4_PIN_NUM   1 /* LED top left green */
 
#define LED4_PORT   GPIO_PORT_C
 
#define LED4_PORT_NUM   PORT_C
 

Describe DC motors with PWM channel and GPIOs

#define MOTOR_DRIVER_NUMOF   ARRAY_SIZE(motor_driver_config)
 Number of motor drivers.
 
static const motor_driver_config_t motor_driver_config []
 Motor driver config. More...
 

Variable Documentation

◆ motor_driver_config

const motor_driver_config_t motor_driver_config[]
static

Motor driver config.

Two driver with three and one motor attached respectively

Definition at line 59 of file board.h.