Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "board.h"
Go to the source code of this file.
#define _CONCAT_BOARD_PARAM | ( | _s1, | |
_s2 | |||
) | _s1 ## _s2 |
Definition at line 23 of file holybro_kakute_f7.h.
#define ActuatorDefaultSet | ( | _x, | |
_y | |||
) | ActuatorPwmSet(_x,_y) |
Definition at line 415 of file holybro_kakute_f7.h.
#define ACTUATORS_PWM_NB 7 |
Definition at line 195 of file holybro_kakute_f7.h.
#define ActuatorsDefaultCommit | ( | ) | ActuatorsPwmCommit() |
Definition at line 417 of file holybro_kakute_f7.h.
#define ActuatorsDefaultInit | ( | ) | ActuatorsPwmInit() |
Definition at line 416 of file holybro_kakute_f7.h.
#define AD1_2_CHANNEL CONCAT_BOARD_PARAM(ADC_CHANNEL_IN, VBAT_MEAS_ADC_IN) |
Definition at line 54 of file holybro_kakute_f7.h.
#define ADC_2 AD1_2 |
Definition at line 55 of file holybro_kakute_f7.h.
#define ADC_2_GPIO_PIN PAL_PAD(LINE_VBAT_MEAS) |
Definition at line 57 of file holybro_kakute_f7.h.
#define ADC_2_GPIO_PORT PAL_PORT(LINE_VBAT_MEAS) |
Definition at line 56 of file holybro_kakute_f7.h.
#define ADC_CHANNEL_VSUPPLY ADC_2 |
Definition at line 70 of file holybro_kakute_f7.h.
#define AHB_CLK STM32_HCLK |
#define BOARD_HOLYBRO_KAKUTE_F7 |
Definition at line 4 of file holybro_kakute_f7.h.
#define CONCAT_BOARD_PARAM | ( | _s1, | |
_s2 | |||
) | _CONCAT_BOARD_PARAM(_s1, _s2) |
Definition at line 24 of file holybro_kakute_f7.h.
#define DEFAULT_ACTUATORS "modules/actuators/actuators_pwm.h" |
Definition at line 414 of file holybro_kakute_f7.h.
Definition at line 85 of file holybro_kakute_f7.h.
Definition at line 80 of file holybro_kakute_f7.h.
#define DSHOT_TELEMETRY_DEV NULL |
DSHOT.
Definition at line 201 of file holybro_kakute_f7.h.
#define I2C1_CFG_DEF |
Definition at line 344 of file holybro_kakute_f7.h.
#define I2C1_CLOCK_SPEED 400000 |
Definition at line 340 of file holybro_kakute_f7.h.
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR |
Definition at line 331 of file holybro_kakute_f7.h.
#define I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR |
Definition at line 334 of file holybro_kakute_f7.h.
#define LED_1_GPIO PAL_PORT(LINE_LED1) |
Definition at line 33 of file holybro_kakute_f7.h.
#define LED_1_GPIO_OFF gpio_clear |
Definition at line 36 of file holybro_kakute_f7.h.
#define LED_1_GPIO_ON gpio_set |
Definition at line 35 of file holybro_kakute_f7.h.
#define LED_1_GPIO_PIN PAL_PAD(LINE_LED1) |
Definition at line 34 of file holybro_kakute_f7.h.
#define PPM_CHANNEL CONCAT_BOARD_PARAM(ICU_CHANNEL_, RC2_TIM_CH) |
Definition at line 322 of file holybro_kakute_f7.h.
#define PPM_TIMER CONCAT_BOARD_PARAM(ICUD, RC2_TIM) |
Definition at line 323 of file holybro_kakute_f7.h.
#define PPM_TIMER_FREQUENCY 6000000 |
Definition at line 321 of file holybro_kakute_f7.h.
#define PWM_SERVO_1 1 |
Definition at line 119 of file holybro_kakute_f7.h.
#define PWM_SERVO_1_AF AF_S1 |
Definition at line 122 of file holybro_kakute_f7.h.
#define PWM_SERVO_1_CHANNEL (S1_TIM_CH-1) |
Definition at line 124 of file holybro_kakute_f7.h.
#define PWM_SERVO_1_CONF CONCAT_BOARD_PARAM(pwmcfg, S1_TIM) |
Definition at line 125 of file holybro_kakute_f7.h.
#define PWM_SERVO_1_DRIVER CONCAT_BOARD_PARAM(PWMD, S1_TIM) |
Definition at line 123 of file holybro_kakute_f7.h.
#define PWM_SERVO_1_GPIO PAL_PORT(LINE_S1) |
Definition at line 120 of file holybro_kakute_f7.h.
#define PWM_SERVO_1_PIN PAL_PAD(LINE_S1) |
Definition at line 121 of file holybro_kakute_f7.h.
#define PWM_SERVO_2 2 |
Definition at line 132 of file holybro_kakute_f7.h.
#define PWM_SERVO_2_AF AF_S2 |
Definition at line 135 of file holybro_kakute_f7.h.
#define PWM_SERVO_2_CHANNEL (S2_TIM_CH-1) |
Definition at line 137 of file holybro_kakute_f7.h.
#define PWM_SERVO_2_CONF CONCAT_BOARD_PARAM(pwmcfg, S2_TIM) |
Definition at line 138 of file holybro_kakute_f7.h.
#define PWM_SERVO_2_DRIVER CONCAT_BOARD_PARAM(PWMD, S2_TIM) |
Definition at line 136 of file holybro_kakute_f7.h.
#define PWM_SERVO_2_GPIO PAL_PORT(LINE_S2) |
Definition at line 133 of file holybro_kakute_f7.h.
#define PWM_SERVO_2_PIN PAL_PAD(LINE_S2) |
Definition at line 134 of file holybro_kakute_f7.h.
#define PWM_SERVO_3 3 |
Definition at line 145 of file holybro_kakute_f7.h.
#define PWM_SERVO_3_AF AF_S3 |
Definition at line 148 of file holybro_kakute_f7.h.
#define PWM_SERVO_3_CHANNEL (S3_TIM_CH-1) |
Definition at line 150 of file holybro_kakute_f7.h.
#define PWM_SERVO_3_CONF CONCAT_BOARD_PARAM(pwmcfg, S3_TIM) |
Definition at line 151 of file holybro_kakute_f7.h.
#define PWM_SERVO_3_DRIVER CONCAT_BOARD_PARAM(PWMD, S3_TIM) |
Definition at line 149 of file holybro_kakute_f7.h.
#define PWM_SERVO_3_GPIO PAL_PORT(LINE_S3) |
Definition at line 146 of file holybro_kakute_f7.h.
#define PWM_SERVO_3_PIN PAL_PAD(LINE_S3) |
Definition at line 147 of file holybro_kakute_f7.h.
#define PWM_SERVO_4 4 |
Definition at line 158 of file holybro_kakute_f7.h.
#define PWM_SERVO_4_AF AF_S4 |
Definition at line 161 of file holybro_kakute_f7.h.
#define PWM_SERVO_4_CHANNEL (S4_TIM_CH-1) |
Definition at line 163 of file holybro_kakute_f7.h.
#define PWM_SERVO_4_CONF CONCAT_BOARD_PARAM(pwmcfg, S4_TIM) |
Definition at line 164 of file holybro_kakute_f7.h.
#define PWM_SERVO_4_DRIVER CONCAT_BOARD_PARAM(PWMD, S4_TIM) |
Definition at line 162 of file holybro_kakute_f7.h.
#define PWM_SERVO_4_GPIO PAL_PORT(LINE_S4) |
Definition at line 159 of file holybro_kakute_f7.h.
#define PWM_SERVO_4_PIN PAL_PAD(LINE_S4) |
Definition at line 160 of file holybro_kakute_f7.h.
#define PWM_SERVO_5 5 |
Definition at line 171 of file holybro_kakute_f7.h.
#define PWM_SERVO_5_AF AF_S5 |
Definition at line 174 of file holybro_kakute_f7.h.
#define PWM_SERVO_5_CHANNEL (S5_TIM_CH-1) |
Definition at line 176 of file holybro_kakute_f7.h.
#define PWM_SERVO_5_CONF CONCAT_BOARD_PARAM(pwmcfg, S5_TIM) |
Definition at line 177 of file holybro_kakute_f7.h.
#define PWM_SERVO_5_DRIVER CONCAT_BOARD_PARAM(PWMD, S5_TIM) |
Definition at line 175 of file holybro_kakute_f7.h.
#define PWM_SERVO_5_GPIO PAL_PORT(LINE_S5) |
Definition at line 172 of file holybro_kakute_f7.h.
#define PWM_SERVO_5_PIN PAL_PAD(LINE_S5) |
Definition at line 173 of file holybro_kakute_f7.h.
#define PWM_SERVO_6 6 |
Definition at line 184 of file holybro_kakute_f7.h.
#define PWM_SERVO_6_AF AF_S6 |
Definition at line 187 of file holybro_kakute_f7.h.
#define PWM_SERVO_6_CHANNEL (S6_TIM_CH-1) |
Definition at line 189 of file holybro_kakute_f7.h.
#define PWM_SERVO_6_CONF CONCAT_BOARD_PARAM(pwmcfg, S6_TIM) |
Definition at line 190 of file holybro_kakute_f7.h.
#define PWM_SERVO_6_DRIVER CONCAT_BOARD_PARAM(PWMD, S6_TIM) |
Definition at line 188 of file holybro_kakute_f7.h.
#define PWM_SERVO_6_GPIO PAL_PORT(LINE_S6) |
Definition at line 185 of file holybro_kakute_f7.h.
#define PWM_SERVO_6_PIN PAL_PAD(LINE_S6) |
Definition at line 186 of file holybro_kakute_f7.h.
#define RC_PPM_TICKS_PER_USEC 6 |
#define SPEKTRUM_BIND_PIN PAL_PORT(LINE_XXX) |
Definition at line 309 of file holybro_kakute_f7.h.
#define SPEKTRUM_BIND_PIN_PORT PAL_PAD(LINE_XXX) |
Definition at line 310 of file holybro_kakute_f7.h.
#define SPEKTRUM_BIND_WAIT 30000 |
Definition at line 313 of file holybro_kakute_f7.h.
#define SPI1_GPIO_AF AF_SPI1_CLK |
SPI Config.
Definition at line 364 of file holybro_kakute_f7.h.
#define SPI1_GPIO_MISO PAL_PAD(LINE_SPI1_MISO) |
Definition at line 366 of file holybro_kakute_f7.h.
#define SPI1_GPIO_MOSI PAL_PAD(LINE_SPI1_MOSI) |
Definition at line 368 of file holybro_kakute_f7.h.
#define SPI1_GPIO_PORT_MISO PAL_PORT(LINE_SPI1_MISO) |
Definition at line 365 of file holybro_kakute_f7.h.
#define SPI1_GPIO_PORT_MOSI PAL_PORT(LINE_SPI1_MOSI) |
Definition at line 367 of file holybro_kakute_f7.h.
#define SPI1_GPIO_PORT_SCK PAL_PORT(LINE_SPI1_CLK) |
Definition at line 369 of file holybro_kakute_f7.h.
#define SPI1_GPIO_SCK PAL_PAD(LINE_SPI1_CLK) |
Definition at line 370 of file holybro_kakute_f7.h.
#define SPI2_GPIO_AF AF_SPI2_CLK |
Definition at line 373 of file holybro_kakute_f7.h.
#define SPI2_GPIO_MISO PAL_PAD(LINE_SPI2_MISO) |
Definition at line 375 of file holybro_kakute_f7.h.
#define SPI2_GPIO_MOSI PAL_PAD(LINE_SPI2_MOSI) |
Definition at line 377 of file holybro_kakute_f7.h.
#define SPI2_GPIO_PORT_MISO PAL_PORT(LINE_SPI2_MISO) |
Definition at line 374 of file holybro_kakute_f7.h.
#define SPI2_GPIO_PORT_MOSI PAL_PORT(LINE_SPI2_MOSI) |
Definition at line 376 of file holybro_kakute_f7.h.
#define SPI2_GPIO_PORT_SCK PAL_PORT(LINE_SPI2_CLK) |
Definition at line 378 of file holybro_kakute_f7.h.
#define SPI2_GPIO_SCK PAL_PAD(LINE_SPI2_CLK) |
Definition at line 379 of file holybro_kakute_f7.h.
#define SPI4_GPIO_AF AF_SPI4_INTERNAL_CLK |
Definition at line 382 of file holybro_kakute_f7.h.
#define SPI4_GPIO_MISO PAL_PAD(LINE_SPI4_INTERNAL_MISO) |
Definition at line 384 of file holybro_kakute_f7.h.
#define SPI4_GPIO_MOSI PAL_PAD(LINE_SPI4_INTERNAL_MOSI) |
Definition at line 386 of file holybro_kakute_f7.h.
#define SPI4_GPIO_PORT_MISO PAL_PORT(LINE_SPI4_INTERNAL_MISO) |
Definition at line 383 of file holybro_kakute_f7.h.
#define SPI4_GPIO_PORT_MOSI PAL_PORT(LINE_SPI4_INTERNAL_MOSI) |
Definition at line 385 of file holybro_kakute_f7.h.
#define SPI4_GPIO_PORT_SCK PAL_PORT(LINE_SPI4_INTERNAL_CLK) |
Definition at line 387 of file holybro_kakute_f7.h.
#define SPI4_GPIO_SCK PAL_PAD(LINE_SPI4_INTERNAL_CLK) |
Definition at line 388 of file holybro_kakute_f7.h.
#define SPI_SELECT_SLAVE0_PIN PAL_PAD(LINE_IMU_CS) |
Definition at line 392 of file holybro_kakute_f7.h.
#define SPI_SELECT_SLAVE0_PORT PAL_PORT(LINE_IMU_CS) |
Definition at line 391 of file holybro_kakute_f7.h.
#define SPI_SELECT_SLAVE1_PIN PAL_PAD(LINE_SDCARD_CS) |
Definition at line 395 of file holybro_kakute_f7.h.
#define SPI_SELECT_SLAVE1_PORT PAL_PORT(LINE_SDCARD_CS) |
Definition at line 394 of file holybro_kakute_f7.h.
#define SPI_SELECT_SLAVE2_PIN PAL_PAD(LINE_OSD_CS) |
Definition at line 398 of file holybro_kakute_f7.h.
#define SPI_SELECT_SLAVE2_PORT PAL_PORT(LINE_OSD_CS) |
Definition at line 397 of file holybro_kakute_f7.h.
#define STM32_CR1_DNF | ( | n | ) | ((n & 0x0f) << 8) |
I2C defines.
Definition at line 329 of file holybro_kakute_f7.h.
#define UART1_GPIO_AF AF_UART1_TX |
Definition at line 267 of file holybro_kakute_f7.h.
#define UART1_GPIO_PORT_RX PAL_PORT(LINE_UART1_RX) |
Definition at line 265 of file holybro_kakute_f7.h.
#define UART1_GPIO_PORT_TX PAL_PORT(LINE_UART1_TX) |
UART1 (Modem)
Definition at line 263 of file holybro_kakute_f7.h.
#define UART1_GPIO_RX PAL_PAD(LINE_UART1_RX) |
Definition at line 266 of file holybro_kakute_f7.h.
#define UART1_GPIO_TX PAL_PAD(LINE_UART1_TX) |
Definition at line 264 of file holybro_kakute_f7.h.
#define UART2_GPIO_AF AF_UART2_TX |
Definition at line 277 of file holybro_kakute_f7.h.
#define UART2_GPIO_PORT_RX PAL_PORT(LINE_UART2_RX) |
Definition at line 275 of file holybro_kakute_f7.h.
#define UART2_GPIO_PORT_TX PAL_PORT(LINE_UART2_TX) |
UART2 (GPS)
Definition at line 273 of file holybro_kakute_f7.h.
#define UART2_GPIO_RX PAL_PAD(LINE_UART2_RX) |
Definition at line 276 of file holybro_kakute_f7.h.
#define UART2_GPIO_TX PAL_PAD(LINE_UART2_TX) |
Definition at line 274 of file holybro_kakute_f7.h.
#define UART3_GPIO_AF AF_UART3_TX |
Definition at line 286 of file holybro_kakute_f7.h.
#define UART3_GPIO_PORT_RX PAL_PORT(LINE_UART3_RX) |
Definition at line 284 of file holybro_kakute_f7.h.
#define UART3_GPIO_PORT_TX PAL_PORT(LINE_UART3_TX) |
UART3 (Companion)
Definition at line 282 of file holybro_kakute_f7.h.
#define UART3_GPIO_RX PAL_PAD(LINE_UART3_RX) |
Definition at line 285 of file holybro_kakute_f7.h.
#define UART3_GPIO_TX PAL_PAD(LINE_UART3_TX) |
Definition at line 283 of file holybro_kakute_f7.h.
#define UART4_GPIO_AF AF_UART4_TX |
Definition at line 295 of file holybro_kakute_f7.h.
#define UART4_GPIO_PORT_RX PAL_PORT(LINE_UART4_RX) |
Definition at line 293 of file holybro_kakute_f7.h.
#define UART4_GPIO_PORT_TX PAL_PORT(LINE_UART4_TX) |
UART4.
Definition at line 291 of file holybro_kakute_f7.h.
#define UART4_GPIO_RX PAL_PAD(LINE_UART4_RX) |
Definition at line 294 of file holybro_kakute_f7.h.
#define UART4_GPIO_TX PAL_PAD(LINE_UART4_TX) |
Definition at line 292 of file holybro_kakute_f7.h.
#define UART6_GPIO_AF RC1_USART_AF |
Definition at line 305 of file holybro_kakute_f7.h.
#define UART6_GPIO_PORT_RX PAL_PORT(LINE_RC1) |
Definition at line 303 of file holybro_kakute_f7.h.
#define UART6_GPIO_RX PAL_PAD(LINE_RC1) |
Definition at line 304 of file holybro_kakute_f7.h.
#define USE_ADC_2 1 |
Definition at line 51 of file holybro_kakute_f7.h.
#define USE_BARO_BOARD 0 |
Baro.
Apparently needed for backwards compatibility with the ancient onboard baro boards
Definition at line 407 of file holybro_kakute_f7.h.
#define USE_DSHOT_TIM 0 |
Definition at line 205 of file holybro_kakute_f7.h.
#define USE_LED_1 1 |
Definition at line 31 of file holybro_kakute_f7.h.
#define USE_PWM1 1 |
Definition at line 116 of file holybro_kakute_f7.h.
#define USE_PWM2 1 |
Definition at line 129 of file holybro_kakute_f7.h.
#define USE_PWM3 1 |
Definition at line 142 of file holybro_kakute_f7.h.
#define USE_PWM4 1 |
Definition at line 155 of file holybro_kakute_f7.h.
#define USE_PWM5 1 |
Definition at line 168 of file holybro_kakute_f7.h.
#define USE_PWM6 1 |
Definition at line 181 of file holybro_kakute_f7.h.
#define USE_PWM_TIM1 1 |
Definition at line 92 of file holybro_kakute_f7.h.
#define USE_PWM_TIM3 1 |
Definition at line 96 of file holybro_kakute_f7.h.
#define USE_PWM_TIM4 1 |
Definition at line 100 of file holybro_kakute_f7.h.
#define USE_PWM_TIM5 1 |
Definition at line 104 of file holybro_kakute_f7.h.
#define USE_PWM_TIM8 1 |
Definition at line 108 of file holybro_kakute_f7.h.
#define USE_UART6_RX TRUE |
SBUS / Spektrum port.
Definition at line 301 of file holybro_kakute_f7.h.
#define USE_UART6_TX FALSE |
Definition at line 302 of file holybro_kakute_f7.h.
#define VBAT_R1 1000.0f |
Definition at line 78 of file holybro_kakute_f7.h.
#define VBAT_R2 10000.0f |
Definition at line 79 of file holybro_kakute_f7.h.