Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "boards/crazyflie/chibios/v2.1/board.h"
Go to the source code of this file.
#define ActuatorDefaultSet | ( | _x, | |
_y | |||
) | ActuatorPwmSet(_x,_y) |
Definition at line 319 of file crazyflie.h.
#define ACTUATORS_PWM_NB 5 |
Definition at line 141 of file crazyflie.h.
#define ActuatorsDefaultCommit | ( | ) | ActuatorsPwmCommit() |
Definition at line 321 of file crazyflie.h.
#define ActuatorsDefaultInit | ( | ) | ActuatorsPwmInit() |
Definition at line 320 of file crazyflie.h.
#define AHB_CLK STM32_HCLK |
#define BOARD_CRAZYFLIE |
Definition at line 4 of file crazyflie.h.
#define DEFAULT_ACTUATORS "modules/actuators/actuators_pwm.h" |
Definition at line 318 of file crazyflie.h.
#define I2C1_CFG_DEF |
Definition at line 232 of file crazyflie.h.
#define I2C1_CLOCK_SPEED 400000 |
Definition at line 223 of file crazyflie.h.
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2 |
Definition at line 226 of file crazyflie.h.
#define I2C3_CFG_DEF |
Definition at line 214 of file crazyflie.h.
#define I2C3_CLOCK_SPEED 400000 |
Definition at line 205 of file crazyflie.h.
#define I2C3_DUTY_CYCLE FAST_DUTY_CYCLE_2 |
Definition at line 208 of file crazyflie.h.
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR |
Definition at line 194 of file crazyflie.h.
#define I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR |
Definition at line 197 of file crazyflie.h.
#define LED_1_GPIO PAL_PORT(LINE_LED_RED_R) |
Definition at line 26 of file crazyflie.h.
#define LED_1_GPIO_OFF gpio_set |
Definition at line 29 of file crazyflie.h.
#define LED_1_GPIO_ON gpio_clear |
Definition at line 28 of file crazyflie.h.
#define LED_1_GPIO_PIN PAL_PAD(LINE_LED_RED_R) |
Definition at line 27 of file crazyflie.h.
#define LED_2_GPIO PAL_PORT(LINE_LED_RED_L) |
Definition at line 34 of file crazyflie.h.
#define LED_2_GPIO_OFF gpio_set |
Definition at line 37 of file crazyflie.h.
#define LED_2_GPIO_ON gpio_clear |
Definition at line 36 of file crazyflie.h.
#define LED_2_GPIO_PIN PAL_PAD(LINE_LED_RED_L) |
Definition at line 35 of file crazyflie.h.
#define LED_3_GPIO PAL_PORT(LINE_LED_GREEN_R) |
Definition at line 42 of file crazyflie.h.
#define LED_3_GPIO_OFF gpio_set |
Definition at line 45 of file crazyflie.h.
#define LED_3_GPIO_ON gpio_clear |
Definition at line 44 of file crazyflie.h.
#define LED_3_GPIO_PIN PAL_PAD(LINE_LED_GREEN_R) |
Definition at line 43 of file crazyflie.h.
#define LED_4_GPIO PAL_PORT(LINE_LED_GREEN_L) |
Definition at line 50 of file crazyflie.h.
#define LED_4_GPIO_OFF gpio_set |
Definition at line 53 of file crazyflie.h.
#define LED_4_GPIO_ON gpio_clear |
Definition at line 52 of file crazyflie.h.
#define LED_4_GPIO_PIN PAL_PAD(LINE_LED_GREEN_L) |
Definition at line 51 of file crazyflie.h.
#define LED_5_GPIO PAL_PORT(LINE_LED_BLUE_L) |
Definition at line 58 of file crazyflie.h.
#define LED_5_GPIO_OFF gpio_clear |
Definition at line 61 of file crazyflie.h.
#define LED_5_GPIO_ON gpio_set |
Definition at line 60 of file crazyflie.h.
#define LED_5_GPIO_PIN PAL_PAD(LINE_LED_BLUE_L) |
Definition at line 59 of file crazyflie.h.
#define PWM_CMD_TO_US | ( | _t | ) | (_t) |
Definition at line 151 of file crazyflie.h.
#define PWM_FREQUENCY 84000000 |
Definition at line 152 of file crazyflie.h.
#define PWM_SERVO_1 1 |
Definition at line 91 of file crazyflie.h.
#define PWM_SERVO_1_AF AF_MOTOR1 |
Definition at line 94 of file crazyflie.h.
#define PWM_SERVO_1_CHANNEL 1 |
Definition at line 96 of file crazyflie.h.
#define PWM_SERVO_1_CONF pwmcfg2 |
Definition at line 97 of file crazyflie.h.
#define PWM_SERVO_1_DRIVER PWMD2 |
Definition at line 95 of file crazyflie.h.
#define PWM_SERVO_1_GPIO PAL_PORT(LINE_MOTOR1) |
Definition at line 92 of file crazyflie.h.
#define PWM_SERVO_1_PIN PAL_PAD(LINE_MOTOR1) |
Definition at line 93 of file crazyflie.h.
#define PWM_SERVO_2 2 |
Definition at line 104 of file crazyflie.h.
#define PWM_SERVO_2_AF AF_MOTOR2 |
Definition at line 107 of file crazyflie.h.
#define PWM_SERVO_2_CHANNEL 3 |
Definition at line 109 of file crazyflie.h.
#define PWM_SERVO_2_CONF pwmcfg2 |
Definition at line 110 of file crazyflie.h.
#define PWM_SERVO_2_DRIVER PWMD2 |
Definition at line 108 of file crazyflie.h.
#define PWM_SERVO_2_GPIO PAL_PORT(LINE_MOTOR2) |
Definition at line 105 of file crazyflie.h.
#define PWM_SERVO_2_PIN PAL_PAD(LINE_MOTOR2) |
Definition at line 106 of file crazyflie.h.
#define PWM_SERVO_3 3 |
Definition at line 117 of file crazyflie.h.
#define PWM_SERVO_3_AF AF_MOTOR3 |
Definition at line 120 of file crazyflie.h.
#define PWM_SERVO_3_CHANNEL 0 |
Definition at line 122 of file crazyflie.h.
#define PWM_SERVO_3_CONF pwmcfg2 |
Definition at line 123 of file crazyflie.h.
#define PWM_SERVO_3_DRIVER PWMD2 |
Definition at line 121 of file crazyflie.h.
#define PWM_SERVO_3_GPIO PAL_PORT(LINE_MOTOR3) |
Definition at line 118 of file crazyflie.h.
#define PWM_SERVO_3_PIN PAL_PAD(LINE_MOTOR3) |
Definition at line 119 of file crazyflie.h.
#define PWM_SERVO_4 4 |
Definition at line 130 of file crazyflie.h.
#define PWM_SERVO_4_AF AF_MOTOR4 |
Definition at line 133 of file crazyflie.h.
#define PWM_SERVO_4_CHANNEL 3 |
Definition at line 135 of file crazyflie.h.
#define PWM_SERVO_4_CONF pwmcfg4 |
Definition at line 136 of file crazyflie.h.
#define PWM_SERVO_4_DRIVER PWMD4 |
Definition at line 134 of file crazyflie.h.
#define PWM_SERVO_4_GPIO PAL_PORT(LINE_MOTOR4) |
Definition at line 131 of file crazyflie.h.
#define PWM_SERVO_4_PIN PAL_PAD(LINE_MOTOR4) |
Definition at line 132 of file crazyflie.h.
#define SERVO_HZ (PWM_FREQUENCY / 256) |
Definition at line 153 of file crazyflie.h.
#define SPI1_GPIO_AF AF_E_SCK |
SPI Config.
Definition at line 287 of file crazyflie.h.
#define SPI1_GPIO_MISO PAL_PAD(LINE_E_MISO) |
Definition at line 289 of file crazyflie.h.
#define SPI1_GPIO_MOSI PAL_PAD(LINE_E_MOSI) |
Definition at line 291 of file crazyflie.h.
#define SPI1_GPIO_PORT_MISO PAL_PORT(LINE_E_MISO) |
Definition at line 288 of file crazyflie.h.
#define SPI1_GPIO_PORT_MOSI PAL_PORT(LINE_E_MOSI) |
Definition at line 290 of file crazyflie.h.
#define SPI1_GPIO_PORT_SCK PAL_PORT(LINE_E_SCK) |
Definition at line 292 of file crazyflie.h.
#define SPI1_GPIO_SCK PAL_PAD(LINE_E_SCK) |
Definition at line 293 of file crazyflie.h.
#define SPI_SELECT_SLAVE0_PIN PAL_PAD(LINE_E_CS0) |
Definition at line 296 of file crazyflie.h.
#define SPI_SELECT_SLAVE0_PORT PAL_PORT(LINE_E_CS0) |
Definition at line 295 of file crazyflie.h.
#define SPI_SELECT_SLAVE1_PIN PAL_PAD(LINE_E_CS1) |
Definition at line 298 of file crazyflie.h.
#define SPI_SELECT_SLAVE1_PORT PAL_PORT(LINE_E_CS1) |
Definition at line 297 of file crazyflie.h.
#define SPI_SELECT_SLAVE2_PIN PAL_PAD(LINE_E_CS2) |
Definition at line 300 of file crazyflie.h.
#define SPI_SELECT_SLAVE2_PORT PAL_PORT(LINE_E_CS2) |
Definition at line 299 of file crazyflie.h.
#define SPI_SELECT_SLAVE3_PIN PAL_PAD(LINE_E_CS3) |
Definition at line 302 of file crazyflie.h.
#define SPI_SELECT_SLAVE3_PORT PAL_PORT(LINE_E_CS3) |
Definition at line 301 of file crazyflie.h.
#define STM32_CR1_DNF | ( | n | ) | ((n & 0x0f) << 8) |
I2C defines.
Definition at line 192 of file crazyflie.h.
#define UART2_GPIO_AF AF_E_RX2 |
Definition at line 162 of file crazyflie.h.
#define UART2_GPIO_PORT_RX PAL_PORT(LINE_E_RX2) |
Definition at line 160 of file crazyflie.h.
#define UART2_GPIO_PORT_TX PAL_PORT(LINE_E_TX2) |
UART2 E_TX2.
Definition at line 158 of file crazyflie.h.
#define UART2_GPIO_RX PAL_PAD(LINE_E_RX2) |
Definition at line 161 of file crazyflie.h.
#define UART2_GPIO_TX PAL_PAD(LINE_E_TX2) |
Definition at line 159 of file crazyflie.h.
#define UART2_HW_FLOW_CONTROL FALSE |
Definition at line 164 of file crazyflie.h.
#define UART3_GPIO_AF AF_E_RX1 |
Definition at line 174 of file crazyflie.h.
#define UART3_GPIO_PORT_RX PAL_PORT(LINE_E_RX1) |
Definition at line 172 of file crazyflie.h.
#define UART3_GPIO_PORT_TX PAL_PORT(LINE_E_TX1) |
UART3 E_TX1.
Definition at line 170 of file crazyflie.h.
#define UART3_GPIO_RX PAL_PAD(LINE_E_RX1) |
Definition at line 173 of file crazyflie.h.
#define UART3_GPIO_TX PAL_PAD(LINE_E_TX1) |
Definition at line 171 of file crazyflie.h.
#define UART6_GPIO_AF AF_NRF_RX |
Definition at line 183 of file crazyflie.h.
#define UART6_GPIO_CTS NRF_FLOW_CTRL |
Definition at line 185 of file crazyflie.h.
#define UART6_GPIO_PORT_CTS PAL_PORT(LINE_NRF_FLOW_CTRL) |
Definition at line 184 of file crazyflie.h.
#define UART6_GPIO_PORT_RX PAL_PORT(LINE_NRF_RX) |
Definition at line 181 of file crazyflie.h.
#define UART6_GPIO_PORT_TX PAL_PORT(LINE_NRF_TX) |
UART6 NRF.
Definition at line 179 of file crazyflie.h.
#define UART6_GPIO_RX PAL_PAD(LINE_NRF_RX) |
Definition at line 182 of file crazyflie.h.
#define UART6_GPIO_TX PAL_PAD(LINE_NRF_TX) |
Definition at line 180 of file crazyflie.h.
#define USE_BARO_BOARD 0 |
) Baro
Apparently needed for backwards compatibility with the ancient onboard baro boards
Definition at line 311 of file crazyflie.h.
#define USE_LED_1 1 |
Definition at line 24 of file crazyflie.h.
#define USE_LED_2 1 |
Definition at line 32 of file crazyflie.h.
#define USE_LED_3 1 |
Definition at line 40 of file crazyflie.h.
#define USE_LED_4 1 |
Definition at line 48 of file crazyflie.h.
#define USE_LED_5 1 |
Definition at line 56 of file crazyflie.h.
#define USE_PWM1 1 |
Definition at line 88 of file crazyflie.h.
#define USE_PWM2 1 |
Definition at line 101 of file crazyflie.h.
#define USE_PWM3 1 |
Definition at line 114 of file crazyflie.h.
#define USE_PWM4 1 |
Definition at line 127 of file crazyflie.h.
#define USE_PWM_TIM2 1 |
Definition at line 74 of file crazyflie.h.
#define USE_PWM_TIM4 1 |
Definition at line 78 of file crazyflie.h.