Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
tawaki.h File Reference
+ Include dependency graph for tawaki.h:

Go to the source code of this file.

Macros

#define BOARD_TAWAKI
 
#define AHB_CLK   STM32_HCLK
 ChibiOS board file. More...
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOD
 
#define LED_1_GPIO_PIN   GPIO15
 
#define LED_1_GPIO_ON   gpio_set
 
#define LED_1_GPIO_OFF   gpio_clear
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOA
 
#define LED_2_GPIO_PIN   GPIO10
 
#define LED_2_GPIO_ON   gpio_set
 
#define LED_2_GPIO_OFF   gpio_clear
 
#define USE_LED_3   1
 
#define LED_3_GPIO   GPIOC
 
#define LED_3_GPIO_PIN   GPIO7
 
#define LED_3_GPIO_ON   gpio_set
 
#define LED_3_GPIO_OFF   gpio_clear
 
#define USE_LED_4   1
 
#define LED_4_GPIO   GPIOD
 
#define LED_4_GPIO_PIN   GPIO10
 
#define LED_4_GPIO_ON   gpio_set
 
#define LED_4_GPIO_OFF   gpio_clear
 
#define USE_ADC_9   1
 
#define AD1_9_CHANNEL   ADC_CHANNEL_IN10
 
#define ADC_9   AD1_9
 
#define ADC_9_GPIO_PORT   GPIOC
 
#define ADC_9_GPIO_PIN   GPIO0
 
#define ADC_CHANNEL_VSUPPLY   ADC_9
 
#define VBAT_R1   2200.0f
 
#define VBAT_R2   12000.0f
 
#define DefaultVoltageOfAdc(adc)   ((3.3f/4096.0f)*((VBAT_R1+VBAT_R2)/VBAT_R1)*adc)
 
#define USE_PWM1   1
 
#define PWM_SERVO_1   1
 
#define PWM_SERVO_1_GPIO   GPIOE
 
#define PWM_SERVO_1_PIN   GPIO9
 
#define PWM_SERVO_1_AF   GPIO_AF1
 
#define PWM_SERVO_1_DRIVER   PWMD1
 
#define PWM_SERVO_1_CHANNEL   0
 
#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM2   1
 
#define PWM_SERVO_2   2
 
#define PWM_SERVO_2_GPIO   GPIOE
 
#define PWM_SERVO_2_PIN   GPIO11
 
#define PWM_SERVO_2_AF   GPIO_AF1
 
#define PWM_SERVO_2_DRIVER   PWMD1
 
#define PWM_SERVO_2_CHANNEL   1
 
#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM3   1
 
#define PWM_SERVO_3   3
 
#define PWM_SERVO_3_GPIO   GPIOE
 
#define PWM_SERVO_3_PIN   GPIO13
 
#define PWM_SERVO_3_AF   GPIO_AF1
 
#define PWM_SERVO_3_DRIVER   PWMD1
 
#define PWM_SERVO_3_CHANNEL   2
 
#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM4   1
 
#define PWM_SERVO_4   4
 
#define PWM_SERVO_4_GPIO   GPIOE
 
#define PWM_SERVO_4_PIN   GPIO14
 
#define PWM_SERVO_4_AF   GPIO_AF1
 
#define PWM_SERVO_4_DRIVER   PWMD1
 
#define PWM_SERVO_4_CHANNEL   3
 
#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM5   0
 
#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM6   0
 
#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM7   0
 
#define PWM_SERVO_7_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM8   0
 
#define PWM_SERVO_8_ACTIVE   PWM_OUTPUT_DISABLED
 
#define ACTUATORS_PWM_NB   9
 
#define PWM_CONF_TIM1   1
 
#define PWM_CONF1_DEF
 
#define PWM_CONF_TIM4   1
 
#define PWM_CONF4_DEF
 
#define DSHOT_TELEMETRY_DEV   NULL
 DSHOT. More...
 
#define USE_DSHOT_TIM4   1
 
#define DSHOT_SERVO_1   1
 
#define DSHOT_SERVO_1_GPIO   GPIOB
 
#define DSHOT_SERVO_1_PIN   GPIO6
 
#define DSHOT_SERVO_1_AF   GPIO_AF2
 
#define DSHOT_SERVO_1_DRIVER   DSHOTD4
 
#define DSHOT_SERVO_1_CHANNEL   0
 
#define DSHOT_SERVO_2   2
 
#define DSHOT_SERVO_2_GPIO   GPIOB
 
#define DSHOT_SERVO_2_PIN   GPIO7
 
#define DSHOT_SERVO_2_AF   GPIO_AF2
 
#define DSHOT_SERVO_2_DRIVER   DSHOTD4
 
#define DSHOT_SERVO_2_CHANNEL   1
 
#define DSHOT_SERVO_3   3
 
#define DSHOT_SERVO_3_GPIO   GPIOB
 
#define DSHOT_SERVO_3_PIN   GPIO8
 
#define DSHOT_SERVO_3_AF   GPIO_AF2
 
#define DSHOT_SERVO_3_DRIVER   DSHOTD4
 
#define DSHOT_SERVO_3_CHANNEL   2
 
#define DSHOT_SERVO_4   4
 
#define DSHOT_SERVO_4_GPIO   GPIOB
 
#define DSHOT_SERVO_4_PIN   GPIO9
 
#define DSHOT_SERVO_4_AF   GPIO_AF2
 
#define DSHOT_SERVO_4_DRIVER   DSHOTD4
 
#define DSHOT_SERVO_4_CHANNEL   3
 
#define DSHOT_CONF_TIM4   1
 
#define DSHOT_CONF4_DEF
 
#define UART2_GPIO_PORT_TX   GPIOD
 UART2 (Modem with optional flow control on AUXa disabled by default) More...
 
#define UART2_GPIO_TX   GPIO5
 
#define UART2_GPIO_PORT_RX   GPIOD
 
#define UART2_GPIO_RX   GPIO6
 
#define UART2_GPIO_AF   7
 
#define UART2_HW_FLOW_CONTROL   FALSE
 
#define UART3_GPIO_PORT_TX   GPIOD
 UART7 (GPS) and UART3 (Companion) are configured as UART from ChibiOS board file by default. More...
 
#define UART3_GPIO_TX   GPIO8
 
#define UART3_GPIO_PORT_RX   GPIOD
 
#define UART3_GPIO_RX   GPIO9
 
#define UART3_GPIO_AF   7
 
#define UART7_GPIO_PORT_TX   GPIOA
 
#define UART7_GPIO_TX   GPIO15
 
#define UART7_GPIO_PORT_RX   GPIOB
 
#define UART7_GPIO_RX   GPIO3
 
#define UART7_GPIO_AF   12
 
#define UART4_GPIO_PORT_TX   GPIOA
 UART4 on AUXa (not configured by default) More...
 
#define UART4_GPIO_TX   GPIO0
 
#define UART4_GPIO_PORT_RX   GPIOA
 
#define UART4_GPIO_RX   GPIO1
 
#define UART4_GPIO_AF   8
 
#define USE_UART8_RX   TRUE
 SBUS / Spektrum port. More...
 
#define USE_UART8_TX   FALSE
 
#define UART8_GPIO_PORT_RX   GPIOE
 
#define UART8_GPIO_RX   GPIO0
 
#define UART8_GPIO_AF   8
 
#define USE_UART6_RX   TRUE
 
#define USE_UART6_TX   FALSE
 
#define UART6_GPIO_PORT_RX   GPIOC
 
#define UART6_GPIO_RX   GPIO6
 
#define UART6_GPIO_AF   8
 
#define SPEKTRUM_BIND_PIN   GPIO1
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOB
 
#define SPEKTRUM_BIND_WAIT   30000
 
#define RC_PPM_TICKS_PER_USEC   6
 PPM radio defines. More...
 
#define PPM_TIMER_FREQUENCY   6000000
 
#define PPM_CHANNEL   ICU_CHANNEL_1
 
#define PPM_TIMER   ICUD8
 
#define PWM_INPUT1_ICU   ICUD2
 
#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1
 
#define PWM_INPUT1_GPIO_PORT   GPIOA
 
#define PWM_INPUT1_GPIO_PIN   GPIO0
 
#define PWM_INPUT1_GPIO_AF   GPIO_AF1
 
#define PWM_INPUT2_ICU   ICUD5
 
#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_2
 
#define PWM_INPUT2_GPIO_PORT   GPIOA
 
#define PWM_INPUT2_GPIO_PIN   GPIO1
 
#define PWM_INPUT2_GPIO_AF   GPIO_AF2
 
#define STM32_CR1_DNF(n)   ((n & 0x0f) << 8)
 I2C defines. More...
 
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
 
#define I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
 
#define I2C4_CLOCK_SPEED   400000
 
#define I2C4_CFG_DEF
 
#define I2C2_CLOCK_SPEED   400000
 
#define I2C2_CFG_DEF
 
#define SPI4_GPIO_AF   GPIO_AF5
 SPI Config. More...
 
#define SPI4_GPIO_PORT_MISO   GPIOE
 
#define SPI4_GPIO_MISO   GPIO5
 
#define SPI4_GPIO_PORT_MOSI   GPIOE
 
#define SPI4_GPIO_MOSI   GPIO6
 
#define SPI4_GPIO_PORT_SCK   GPIOE
 
#define SPI4_GPIO_SCK   GPIO2
 
#define SPI2_GPIO_AF   GPIO_AF5
 
#define SPI2_GPIO_PORT_MISO   GPIOB
 
#define SPI2_GPIO_MISO   GPIO14
 
#define SPI2_GPIO_PORT_MOSI   GPIOB
 
#define SPI2_GPIO_MOSI   GPIO15
 
#define SPI2_GPIO_PORT_SCK   GPIOD
 
#define SPI2_GPIO_SCK   GPIO3
 
#define SPI_SELECT_SLAVE0_PORT   GPIOB
 
#define SPI_SELECT_SLAVE0_PIN   GPIO12
 
#define SPI_SELECT_SLAVE1_PORT   GPIOA
 
#define SPI_SELECT_SLAVE1_PIN   GPIO3
 
#define SPI_SELECT_SLAVE2_PORT   GPIOA
 
#define SPI_SELECT_SLAVE2_PIN   GPIO7
 
#define SPI_SELECT_SLAVE3_PORT   GPIOB
 
#define SPI_SELECT_SLAVE3_PIN   GPIO0
 
#define SPI_SELECT_SLAVE4_PORT   GPIOB
 
#define SPI_SELECT_SLAVE4_PIN   GPIO1
 
#define SPI_SELECT_SLAVE5_PORT   GPIOE
 
#define SPI_SELECT_SLAVE5_PIN   GPIO4
 
#define USE_BARO_BOARD   0
 Baro. More...
 
#define SDIO_D0_PORT   GPIOC
 SDIO. More...
 
#define SDIO_D0_PIN   GPIO8
 
#define SDIO_D1_PORT   GPIOC
 
#define SDIO_D1_PIN   GPIO9
 
#define SDIO_D2_PORT   GPIOC
 
#define SDIO_D2_PIN   GPIO10
 
#define SDIO_D3_PORT   GPIOC
 
#define SDIO_D3_PIN   GPIO11
 
#define SDIO_CK_PORT   GPIOC
 
#define SDIO_CK_PIN   GPIO12
 
#define SDIO_CMD_PORT   GPIOD
 
#define SDIO_CMD_PIN   GPIO2
 
#define SDIO_AF   12
 
#define SDLOG_BAT_ADC   ADCD1
 
#define SDLOG_BAT_CHAN   ADC_CHANNEL_IN10
 
#define SDLOG_USB_LED   4
 
#define SDLOG_USB_VBUS_PORT   GPIOA
 
#define SDLOG_USB_VBUS_PIN   GPIO9
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 

Macro Definition Documentation

#define ActuatorDefaultSet (   _x,
  _y 
)    ActuatorPwmSet(_x,_y)

Definition at line 658 of file tawaki.h.

#define ACTUATORS_PWM_NB   9

Definition at line 283 of file tawaki.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 660 of file tawaki.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 659 of file tawaki.h.

#define AD1_9_CHANNEL   ADC_CHANNEL_IN10

Definition at line 132 of file tawaki.h.

#define ADC_9   AD1_9

Definition at line 133 of file tawaki.h.

#define ADC_9_GPIO_PIN   GPIO0

Definition at line 135 of file tawaki.h.

Referenced by adc_init().

#define ADC_9_GPIO_PORT   GPIOC

Definition at line 134 of file tawaki.h.

Referenced by adc_init().

#define ADC_CHANNEL_VSUPPLY   ADC_9

Definition at line 140 of file tawaki.h.

#define AHB_CLK   STM32_HCLK

ChibiOS board file.

PPRZ definitions

Definition at line 18 of file tawaki.h.

#define BOARD_TAWAKI

Definition at line 4 of file tawaki.h.

#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"

Definition at line 657 of file tawaki.h.

#define DefaultVoltageOfAdc (   adc)    ((3.3f/4096.0f)*((VBAT_R1+VBAT_R2)/VBAT_R1)*adc)

Definition at line 150 of file tawaki.h.

#define DSHOT_CONF4_DEF
Value:
{ \
.dma_stream = STM32_PWM4_UP_DMA_STREAM, \
.dma_channel = STM32_PWM4_UP_DMA_CHANNEL, \
.pwmp = &PWMD4, \
.tlm_sd = DSHOT_TELEMETRY_DEV \
}
#define STM32_PWM4_UP_DMA_CHANNEL
Definition: mcuconf.h:301
#define STM32_PWM4_UP_DMA_STREAM
Definition: mcuconf.h:300
#define DSHOT_TELEMETRY_DEV
DSHOT.
Definition: tawaki.h:328

Definition at line 367 of file tawaki.h.

#define DSHOT_CONF_TIM4   1

Definition at line 366 of file tawaki.h.

#define DSHOT_SERVO_1   1

Definition at line 338 of file tawaki.h.

#define DSHOT_SERVO_1_AF   GPIO_AF2

Definition at line 341 of file tawaki.h.

#define DSHOT_SERVO_1_CHANNEL   0

Definition at line 343 of file tawaki.h.

#define DSHOT_SERVO_1_DRIVER   DSHOTD4

Definition at line 342 of file tawaki.h.

#define DSHOT_SERVO_1_GPIO   GPIOB

Definition at line 339 of file tawaki.h.

#define DSHOT_SERVO_1_PIN   GPIO6

Definition at line 340 of file tawaki.h.

#define DSHOT_SERVO_2   2

Definition at line 345 of file tawaki.h.

#define DSHOT_SERVO_2_AF   GPIO_AF2

Definition at line 348 of file tawaki.h.

#define DSHOT_SERVO_2_CHANNEL   1

Definition at line 350 of file tawaki.h.

#define DSHOT_SERVO_2_DRIVER   DSHOTD4

Definition at line 349 of file tawaki.h.

#define DSHOT_SERVO_2_GPIO   GPIOB

Definition at line 346 of file tawaki.h.

#define DSHOT_SERVO_2_PIN   GPIO7

Definition at line 347 of file tawaki.h.

#define DSHOT_SERVO_3   3

Definition at line 352 of file tawaki.h.

#define DSHOT_SERVO_3_AF   GPIO_AF2

Definition at line 355 of file tawaki.h.

#define DSHOT_SERVO_3_CHANNEL   2

Definition at line 357 of file tawaki.h.

#define DSHOT_SERVO_3_DRIVER   DSHOTD4

Definition at line 356 of file tawaki.h.

#define DSHOT_SERVO_3_GPIO   GPIOB

Definition at line 353 of file tawaki.h.

#define DSHOT_SERVO_3_PIN   GPIO8

Definition at line 354 of file tawaki.h.

#define DSHOT_SERVO_4   4

Definition at line 359 of file tawaki.h.

#define DSHOT_SERVO_4_AF   GPIO_AF2

Definition at line 362 of file tawaki.h.

#define DSHOT_SERVO_4_CHANNEL   3

Definition at line 364 of file tawaki.h.

#define DSHOT_SERVO_4_DRIVER   DSHOTD4

Definition at line 363 of file tawaki.h.

#define DSHOT_SERVO_4_GPIO   GPIOB

Definition at line 360 of file tawaki.h.

#define DSHOT_SERVO_4_PIN   GPIO9

Definition at line 361 of file tawaki.h.

#define DSHOT_TELEMETRY_DEV   NULL

DSHOT.

Definition at line 328 of file tawaki.h.

#define I2C2_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: tawaki.h:525
#define STM32_CR1_DNF(n)
I2C defines.
Definition: tawaki.h:523

Definition at line 562 of file tawaki.h.

#define I2C2_CLOCK_SPEED   400000

Definition at line 558 of file tawaki.h.

#define I2C4_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: tawaki.h:525
#define STM32_CR1_DNF(n)
I2C defines.
Definition: tawaki.h:523

Definition at line 540 of file tawaki.h.

#define I2C4_CLOCK_SPEED   400000

Definition at line 536 of file tawaki.h.

#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Value:
(STM32_TIMINGR_PRESC(0U) | \
STM32_TIMINGR_SCLDEL(10U) | STM32_TIMINGR_SDADEL(0U) | \
STM32_TIMINGR_SCLH(34U) | STM32_TIMINGR_SCLL(86U))

Definition at line 525 of file tawaki.h.

#define I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Value:
(STM32_TIMINGR_PRESC(1U) | \
STM32_TIMINGR_SCLDEL(9U) | STM32_TIMINGR_SDADEL(0U) | \
STM32_TIMINGR_SCLH(105U) | STM32_TIMINGR_SCLL(153U))

Definition at line 528 of file tawaki.h.

#define LED_1_GPIO   GPIOD

Definition at line 28 of file tawaki.h.

#define LED_1_GPIO_OFF   gpio_clear

Definition at line 31 of file tawaki.h.

#define LED_1_GPIO_ON   gpio_set

Definition at line 30 of file tawaki.h.

#define LED_1_GPIO_PIN   GPIO15

Definition at line 29 of file tawaki.h.

#define LED_2_GPIO   GPIOA

Definition at line 37 of file tawaki.h.

#define LED_2_GPIO_OFF   gpio_clear

Definition at line 40 of file tawaki.h.

#define LED_2_GPIO_ON   gpio_set

Definition at line 39 of file tawaki.h.

#define LED_2_GPIO_PIN   GPIO10

Definition at line 38 of file tawaki.h.

#define LED_3_GPIO   GPIOC

Definition at line 46 of file tawaki.h.

#define LED_3_GPIO_OFF   gpio_clear

Definition at line 49 of file tawaki.h.

#define LED_3_GPIO_ON   gpio_set

Definition at line 48 of file tawaki.h.

#define LED_3_GPIO_PIN   GPIO7

Definition at line 47 of file tawaki.h.

#define LED_4_GPIO   GPIOD

Definition at line 55 of file tawaki.h.

#define LED_4_GPIO_OFF   gpio_clear

Definition at line 58 of file tawaki.h.

#define LED_4_GPIO_ON   gpio_set

Definition at line 57 of file tawaki.h.

#define LED_4_GPIO_PIN   GPIO10

Definition at line 56 of file tawaki.h.

#define PPM_CHANNEL   ICU_CHANNEL_1

Definition at line 499 of file tawaki.h.

#define PPM_TIMER   ICUD8

Definition at line 500 of file tawaki.h.

#define PPM_TIMER_FREQUENCY   6000000

Definition at line 498 of file tawaki.h.

#define PWM_CONF1_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_1_ACTIVE, NULL }, \
{ PWM_SERVO_2_ACTIVE, NULL }, \
{ PWM_SERVO_3_ACTIVE, NULL }, \
{ PWM_SERVO_4_ACTIVE, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_2_ACTIVE
Definition: tawaki.h:183
#define PWM_FREQUENCY
#define PWM_SERVO_1_ACTIVE
Definition: tawaki.h:168
#define PWM_SERVO_3_ACTIVE
Definition: tawaki.h:198
#define PWM_SERVO_4_ACTIVE
Definition: tawaki.h:213
#define TIM1_SERVO_HZ

Definition at line 291 of file tawaki.h.

#define PWM_CONF4_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_5_ACTIVE, NULL }, \
{ PWM_SERVO_6_ACTIVE, NULL }, \
{ PWM_SERVO_7_ACTIVE, NULL }, \
{ PWM_SERVO_8_ACTIVE, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_5_ACTIVE
Definition: tawaki.h:232
#define TIM4_SERVO_HZ
#define PWM_SERVO_6_ACTIVE
Definition: tawaki.h:247
#define PWM_SERVO_8_ACTIVE
Definition: tawaki.h:277
#define PWM_FREQUENCY
#define PWM_SERVO_7_ACTIVE
Definition: tawaki.h:262

Definition at line 310 of file tawaki.h.

#define PWM_CONF_TIM1   1

Definition at line 289 of file tawaki.h.

#define PWM_CONF_TIM4   1

Definition at line 308 of file tawaki.h.

#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1

Definition at line 507 of file tawaki.h.

#define PWM_INPUT1_GPIO_AF   GPIO_AF1

Definition at line 510 of file tawaki.h.

#define PWM_INPUT1_GPIO_PIN   GPIO0

Definition at line 509 of file tawaki.h.

#define PWM_INPUT1_GPIO_PORT   GPIOA

Definition at line 508 of file tawaki.h.

#define PWM_INPUT1_ICU   ICUD2

Definition at line 506 of file tawaki.h.

#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_2

Definition at line 514 of file tawaki.h.

#define PWM_INPUT2_GPIO_AF   GPIO_AF2

Definition at line 517 of file tawaki.h.

#define PWM_INPUT2_GPIO_PIN   GPIO1

Definition at line 516 of file tawaki.h.

#define PWM_INPUT2_GPIO_PORT   GPIOA

Definition at line 515 of file tawaki.h.

#define PWM_INPUT2_ICU   ICUD5

Definition at line 513 of file tawaki.h.

#define PWM_SERVO_1   1

Definition at line 162 of file tawaki.h.

#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 168 of file tawaki.h.

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 165 of file tawaki.h.

#define PWM_SERVO_1_CHANNEL   0

Definition at line 167 of file tawaki.h.

#define PWM_SERVO_1_DRIVER   PWMD1

Definition at line 166 of file tawaki.h.

#define PWM_SERVO_1_GPIO   GPIOE

Definition at line 163 of file tawaki.h.

#define PWM_SERVO_1_PIN   GPIO9

Definition at line 164 of file tawaki.h.

#define PWM_SERVO_2   2

Definition at line 177 of file tawaki.h.

#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 183 of file tawaki.h.

#define PWM_SERVO_2_AF   GPIO_AF1

Definition at line 180 of file tawaki.h.

#define PWM_SERVO_2_CHANNEL   1

Definition at line 182 of file tawaki.h.

#define PWM_SERVO_2_DRIVER   PWMD1

Definition at line 181 of file tawaki.h.

#define PWM_SERVO_2_GPIO   GPIOE

Definition at line 178 of file tawaki.h.

#define PWM_SERVO_2_PIN   GPIO11

Definition at line 179 of file tawaki.h.

#define PWM_SERVO_3   3

Definition at line 192 of file tawaki.h.

#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 198 of file tawaki.h.

#define PWM_SERVO_3_AF   GPIO_AF1

Definition at line 195 of file tawaki.h.

#define PWM_SERVO_3_CHANNEL   2

Definition at line 197 of file tawaki.h.

#define PWM_SERVO_3_DRIVER   PWMD1

Definition at line 196 of file tawaki.h.

#define PWM_SERVO_3_GPIO   GPIOE

Definition at line 193 of file tawaki.h.

#define PWM_SERVO_3_PIN   GPIO13

Definition at line 194 of file tawaki.h.

#define PWM_SERVO_4   4

Definition at line 207 of file tawaki.h.

#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 213 of file tawaki.h.

#define PWM_SERVO_4_AF   GPIO_AF1

Definition at line 210 of file tawaki.h.

#define PWM_SERVO_4_CHANNEL   3

Definition at line 212 of file tawaki.h.

#define PWM_SERVO_4_DRIVER   PWMD1

Definition at line 211 of file tawaki.h.

#define PWM_SERVO_4_GPIO   GPIOE

Definition at line 208 of file tawaki.h.

#define PWM_SERVO_4_PIN   GPIO14

Definition at line 209 of file tawaki.h.

#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 232 of file tawaki.h.

#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 247 of file tawaki.h.

#define PWM_SERVO_7_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 262 of file tawaki.h.

#define PWM_SERVO_8_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 277 of file tawaki.h.

#define RC_PPM_TICKS_PER_USEC   6

PPM radio defines.

available on RC2

Definition at line 497 of file tawaki.h.

#define SDIO_AF   12

Definition at line 643 of file tawaki.h.

#define SDIO_CK_PIN   GPIO12

Definition at line 640 of file tawaki.h.

#define SDIO_CK_PORT   GPIOC

Definition at line 639 of file tawaki.h.

#define SDIO_CMD_PIN   GPIO2

Definition at line 642 of file tawaki.h.

#define SDIO_CMD_PORT   GPIOD

Definition at line 641 of file tawaki.h.

#define SDIO_D0_PIN   GPIO8

Definition at line 632 of file tawaki.h.

#define SDIO_D0_PORT   GPIOC

SDIO.

Definition at line 631 of file tawaki.h.

#define SDIO_D1_PIN   GPIO9

Definition at line 634 of file tawaki.h.

#define SDIO_D1_PORT   GPIOC

Definition at line 633 of file tawaki.h.

#define SDIO_D2_PIN   GPIO10

Definition at line 636 of file tawaki.h.

#define SDIO_D2_PORT   GPIOC

Definition at line 635 of file tawaki.h.

#define SDIO_D3_PIN   GPIO11

Definition at line 638 of file tawaki.h.

#define SDIO_D3_PORT   GPIOC

Definition at line 637 of file tawaki.h.

#define SDLOG_BAT_ADC   ADCD1

Definition at line 645 of file tawaki.h.

#define SDLOG_BAT_CHAN   ADC_CHANNEL_IN10

Definition at line 646 of file tawaki.h.

#define SDLOG_USB_LED   4

Definition at line 648 of file tawaki.h.

#define SDLOG_USB_VBUS_PIN   GPIO9

Definition at line 650 of file tawaki.h.

#define SDLOG_USB_VBUS_PORT   GPIOA

Definition at line 649 of file tawaki.h.

#define SPEKTRUM_BIND_PIN   GPIO1

Definition at line 486 of file tawaki.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOB

Definition at line 487 of file tawaki.h.

#define SPEKTRUM_BIND_WAIT   30000

Definition at line 490 of file tawaki.h.

#define SPI2_GPIO_AF   GPIO_AF5

Definition at line 591 of file tawaki.h.

#define SPI2_GPIO_MISO   GPIO14

Definition at line 593 of file tawaki.h.

#define SPI2_GPIO_MOSI   GPIO15

Definition at line 595 of file tawaki.h.

#define SPI2_GPIO_PORT_MISO   GPIOB

Definition at line 592 of file tawaki.h.

#define SPI2_GPIO_PORT_MOSI   GPIOB

Definition at line 594 of file tawaki.h.

#define SPI2_GPIO_PORT_SCK   GPIOD

Definition at line 596 of file tawaki.h.

#define SPI2_GPIO_SCK   GPIO3

Definition at line 597 of file tawaki.h.

#define SPI4_GPIO_AF   GPIO_AF5

SPI Config.

Definition at line 582 of file tawaki.h.

#define SPI4_GPIO_MISO   GPIO5

Definition at line 584 of file tawaki.h.

#define SPI4_GPIO_MOSI   GPIO6

Definition at line 586 of file tawaki.h.

#define SPI4_GPIO_PORT_MISO   GPIOE

Definition at line 583 of file tawaki.h.

#define SPI4_GPIO_PORT_MOSI   GPIOE

Definition at line 585 of file tawaki.h.

#define SPI4_GPIO_PORT_SCK   GPIOE

Definition at line 587 of file tawaki.h.

#define SPI4_GPIO_SCK   GPIO2

Definition at line 588 of file tawaki.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO12

Definition at line 601 of file tawaki.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOB

Definition at line 600 of file tawaki.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO3

Definition at line 604 of file tawaki.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 603 of file tawaki.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO7

Definition at line 607 of file tawaki.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOA

Definition at line 606 of file tawaki.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO0

Definition at line 610 of file tawaki.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOB

Definition at line 609 of file tawaki.h.

#define SPI_SELECT_SLAVE4_PIN   GPIO1

Definition at line 613 of file tawaki.h.

#define SPI_SELECT_SLAVE4_PORT   GPIOB

Definition at line 612 of file tawaki.h.

#define SPI_SELECT_SLAVE5_PIN   GPIO4

Definition at line 616 of file tawaki.h.

#define SPI_SELECT_SLAVE5_PORT   GPIOE

Definition at line 615 of file tawaki.h.

#define STM32_CR1_DNF (   n)    ((n & 0x0f) << 8)

I2C defines.

Definition at line 523 of file tawaki.h.

#define UART2_GPIO_AF   7

Definition at line 423 of file tawaki.h.

#define UART2_GPIO_PORT_RX   GPIOD

Definition at line 421 of file tawaki.h.

#define UART2_GPIO_PORT_TX   GPIOD

UART2 (Modem with optional flow control on AUXa disabled by default)

Definition at line 419 of file tawaki.h.

#define UART2_GPIO_RX   GPIO6

Definition at line 422 of file tawaki.h.

#define UART2_GPIO_TX   GPIO5

Definition at line 420 of file tawaki.h.

#define UART2_HW_FLOW_CONTROL   FALSE

Definition at line 425 of file tawaki.h.

#define UART3_GPIO_AF   7

Definition at line 437 of file tawaki.h.

#define UART3_GPIO_PORT_RX   GPIOD

Definition at line 435 of file tawaki.h.

#define UART3_GPIO_PORT_TX   GPIOD

UART7 (GPS) and UART3 (Companion) are configured as UART from ChibiOS board file by default.

Definition at line 433 of file tawaki.h.

#define UART3_GPIO_RX   GPIO9

Definition at line 436 of file tawaki.h.

#define UART3_GPIO_TX   GPIO8

Definition at line 434 of file tawaki.h.

#define UART4_GPIO_AF   8

Definition at line 453 of file tawaki.h.

#define UART4_GPIO_PORT_RX   GPIOA

Definition at line 451 of file tawaki.h.

#define UART4_GPIO_PORT_TX   GPIOA

UART4 on AUXa (not configured by default)

Definition at line 449 of file tawaki.h.

#define UART4_GPIO_RX   GPIO1

Definition at line 452 of file tawaki.h.

#define UART4_GPIO_TX   GPIO0

Definition at line 450 of file tawaki.h.

#define UART6_GPIO_AF   8

Definition at line 481 of file tawaki.h.

#define UART6_GPIO_PORT_RX   GPIOC

Definition at line 479 of file tawaki.h.

#define UART6_GPIO_RX   GPIO6

Definition at line 480 of file tawaki.h.

#define UART7_GPIO_AF   12

Definition at line 443 of file tawaki.h.

#define UART7_GPIO_PORT_RX   GPIOB

Definition at line 441 of file tawaki.h.

#define UART7_GPIO_PORT_TX   GPIOA

Definition at line 439 of file tawaki.h.

#define UART7_GPIO_RX   GPIO3

Definition at line 442 of file tawaki.h.

#define UART7_GPIO_TX   GPIO15

Definition at line 440 of file tawaki.h.

#define UART8_GPIO_AF   8

Definition at line 474 of file tawaki.h.

#define UART8_GPIO_PORT_RX   GPIOE

Definition at line 472 of file tawaki.h.

#define UART8_GPIO_RX   GPIO0

Definition at line 473 of file tawaki.h.

#define USE_ADC_9   1

Definition at line 129 of file tawaki.h.

#define USE_BARO_BOARD   0

Baro.

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 625 of file tawaki.h.

#define USE_DSHOT_TIM4   1

Definition at line 332 of file tawaki.h.

#define USE_LED_1   1

Definition at line 26 of file tawaki.h.

#define USE_LED_2   1

Definition at line 35 of file tawaki.h.

#define USE_LED_3   1

Definition at line 44 of file tawaki.h.

#define USE_LED_4   1

Definition at line 53 of file tawaki.h.

#define USE_PWM1   1

Definition at line 159 of file tawaki.h.

#define USE_PWM2   1

Definition at line 174 of file tawaki.h.

#define USE_PWM3   1

Definition at line 189 of file tawaki.h.

#define USE_PWM4   1

Definition at line 204 of file tawaki.h.

#define USE_PWM5   0

Definition at line 221 of file tawaki.h.

#define USE_PWM6   0

Definition at line 236 of file tawaki.h.

#define USE_PWM7   0

Definition at line 251 of file tawaki.h.

#define USE_PWM8   0

Definition at line 266 of file tawaki.h.

#define USE_UART6_RX   TRUE

Definition at line 477 of file tawaki.h.

#define USE_UART6_TX   FALSE

Definition at line 478 of file tawaki.h.

#define USE_UART8_RX   TRUE

SBUS / Spektrum port.

Recommended config:

primary SBUS port is UART8, a.k.a. RC1 on Tawaki board secondary port (in dual driver) is UART6, a.k.a. RC2 on Tawaki board

primary Spektrum port is UART6, a.k.a. RC2 on Tawaki board secondary port is UART8, a.k.a. RC1 on Tawaki board

Definition at line 468 of file tawaki.h.

#define USE_UART8_TX   FALSE

Definition at line 470 of file tawaki.h.

#define VBAT_R1   2200.0f

Definition at line 148 of file tawaki.h.

#define VBAT_R2   12000.0f

Definition at line 149 of file tawaki.h.