Paparazzi UAS  v5.15_devel-230-gc96ce27
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 USE_PWM9   0
 
#define PWM_SERVO_9_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM10   0
 
#define PWM_SERVO_10_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM11   0
 
#define PWM_SERVO_11_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM12   0
 
#define PWM_SERVO_12_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM13   0
 
#define PWM_SERVO_13_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM14   0
 
#define PWM_SERVO_14_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM15   0
 
#define PWM_SERVO_15_ACTIVE   PWM_OUTPUT_DISABLED
 
#define USE_PWM16   0
 
#define PWM_SERVO_16_ACTIVE   PWM_OUTPUT_DISABLED
 
#define ACTUATORS_PWM_NB   17
 
#define PWM_CONF_TIM1   1
 
#define PWM_CONF1_DEF
 
#define PWM_CONF_TIM3   1
 
#define PWM_CONF3_DEF
 
#define PWM_CONF_TIM4   1
 
#define PWM_CONF4_DEF
 
#define PWM_CONF_TIM5   1
 
#define PWM_CONF5_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()
 
#define WS2812D1_GPIO   GPIOA
 For WS2812. More...
 
#define WS2812D1_PIN   GPIO0
 
#define WS2812D1_AF   2
 
#define WS2812D1_CFG_DEF
 

Macro Definition Documentation

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

Definition at line 815 of file tawaki.h.

#define ACTUATORS_PWM_NB   17

Definition at line 402 of file tawaki.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 817 of file tawaki.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 816 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 814 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:305
#define STM32_PWM4_UP_DMA_STREAM
Definition: mcuconf.h:304
#define DSHOT_TELEMETRY_DEV
DSHOT.
Definition: tawaki.h:485

Definition at line 524 of file tawaki.h.

#define DSHOT_CONF_TIM4   1

Definition at line 523 of file tawaki.h.

#define DSHOT_SERVO_1   1

Definition at line 495 of file tawaki.h.

#define DSHOT_SERVO_1_AF   GPIO_AF2

Definition at line 498 of file tawaki.h.

#define DSHOT_SERVO_1_CHANNEL   0

Definition at line 500 of file tawaki.h.

#define DSHOT_SERVO_1_DRIVER   DSHOTD4

Definition at line 499 of file tawaki.h.

#define DSHOT_SERVO_1_GPIO   GPIOB

Definition at line 496 of file tawaki.h.

#define DSHOT_SERVO_1_PIN   GPIO6

Definition at line 497 of file tawaki.h.

#define DSHOT_SERVO_2   2

Definition at line 502 of file tawaki.h.

#define DSHOT_SERVO_2_AF   GPIO_AF2

Definition at line 505 of file tawaki.h.

#define DSHOT_SERVO_2_CHANNEL   1

Definition at line 507 of file tawaki.h.

#define DSHOT_SERVO_2_DRIVER   DSHOTD4

Definition at line 506 of file tawaki.h.

#define DSHOT_SERVO_2_GPIO   GPIOB

Definition at line 503 of file tawaki.h.

#define DSHOT_SERVO_2_PIN   GPIO7

Definition at line 504 of file tawaki.h.

#define DSHOT_SERVO_3   3

Definition at line 509 of file tawaki.h.

#define DSHOT_SERVO_3_AF   GPIO_AF2

Definition at line 512 of file tawaki.h.

#define DSHOT_SERVO_3_CHANNEL   2

Definition at line 514 of file tawaki.h.

#define DSHOT_SERVO_3_DRIVER   DSHOTD4

Definition at line 513 of file tawaki.h.

#define DSHOT_SERVO_3_GPIO   GPIOB

Definition at line 510 of file tawaki.h.

#define DSHOT_SERVO_3_PIN   GPIO8

Definition at line 511 of file tawaki.h.

#define DSHOT_SERVO_4   4

Definition at line 516 of file tawaki.h.

#define DSHOT_SERVO_4_AF   GPIO_AF2

Definition at line 519 of file tawaki.h.

#define DSHOT_SERVO_4_CHANNEL   3

Definition at line 521 of file tawaki.h.

#define DSHOT_SERVO_4_DRIVER   DSHOTD4

Definition at line 520 of file tawaki.h.

#define DSHOT_SERVO_4_GPIO   GPIOB

Definition at line 517 of file tawaki.h.

#define DSHOT_SERVO_4_PIN   GPIO9

Definition at line 518 of file tawaki.h.

#define DSHOT_TELEMETRY_DEV   NULL

DSHOT.

Definition at line 485 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:682
#define STM32_CR1_DNF(n)
I2C defines.
Definition: tawaki.h:680

Definition at line 719 of file tawaki.h.

#define I2C2_CLOCK_SPEED   400000

Definition at line 715 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:682
#define STM32_CR1_DNF(n)
I2C defines.
Definition: tawaki.h:680

Definition at line 697 of file tawaki.h.

#define I2C4_CLOCK_SPEED   400000

Definition at line 693 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 682 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 685 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 656 of file tawaki.h.

#define PPM_TIMER   ICUD8

Definition at line 657 of file tawaki.h.

#define PPM_TIMER_FREQUENCY   6000000

Definition at line 655 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 410 of file tawaki.h.

#define PWM_CONF3_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_12_ACTIVE, NULL }, \
{ PWM_SERVO_14_ACTIVE, NULL }, \
{ PWM_SERVO_15_ACTIVE, NULL }, \
{ PWM_SERVO_16_ACTIVE, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_15_ACTIVE
Definition: tawaki.h:382
#define PWM_SERVO_14_ACTIVE
Definition: tawaki.h:367
#define TIM3_SERVO_HZ
#define PWM_SERVO_16_ACTIVE
Definition: tawaki.h:397
#define PWM_SERVO_12_ACTIVE
Definition: tawaki.h:337
#define PWM_FREQUENCY

Definition at line 429 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 448 of file tawaki.h.

#define PWM_CONF5_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_9_ACTIVE, NULL }, \
{ PWM_SERVO_10_ACTIVE, NULL }, \
{ PWM_SERVO_11_ACTIVE, NULL }, \
{ PWM_SERVO_13_ACTIVE, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_13_ACTIVE
Definition: tawaki.h:352
#define TIM5_SERVO_HZ
#define PWM_SERVO_10_ACTIVE
Definition: tawaki.h:307
#define PWM_SERVO_9_ACTIVE
Definition: tawaki.h:292
#define PWM_FREQUENCY
#define PWM_SERVO_11_ACTIVE
Definition: tawaki.h:322

Definition at line 467 of file tawaki.h.

#define PWM_CONF_TIM1   1

Definition at line 408 of file tawaki.h.

#define PWM_CONF_TIM3   1

Definition at line 427 of file tawaki.h.

#define PWM_CONF_TIM4   1

Definition at line 446 of file tawaki.h.

#define PWM_CONF_TIM5   1

Definition at line 465 of file tawaki.h.

#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1

Definition at line 664 of file tawaki.h.

#define PWM_INPUT1_GPIO_AF   GPIO_AF1

Definition at line 667 of file tawaki.h.

#define PWM_INPUT1_GPIO_PIN   GPIO0

Definition at line 666 of file tawaki.h.

#define PWM_INPUT1_GPIO_PORT   GPIOA

Definition at line 665 of file tawaki.h.

#define PWM_INPUT1_ICU   ICUD2

Definition at line 663 of file tawaki.h.

#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_2

Definition at line 671 of file tawaki.h.

#define PWM_INPUT2_GPIO_AF   GPIO_AF2

Definition at line 674 of file tawaki.h.

#define PWM_INPUT2_GPIO_PIN   GPIO1

Definition at line 673 of file tawaki.h.

#define PWM_INPUT2_GPIO_PORT   GPIOA

Definition at line 672 of file tawaki.h.

#define PWM_INPUT2_ICU   ICUD5

Definition at line 670 of file tawaki.h.

#define PWM_SERVO_1   1

Definition at line 162 of file tawaki.h.

#define PWM_SERVO_10_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 307 of file tawaki.h.

#define PWM_SERVO_11_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 322 of file tawaki.h.

#define PWM_SERVO_12_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 337 of file tawaki.h.

#define PWM_SERVO_13_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 352 of file tawaki.h.

#define PWM_SERVO_14_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 367 of file tawaki.h.

#define PWM_SERVO_15_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 382 of file tawaki.h.

#define PWM_SERVO_16_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 397 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 PWM_SERVO_9_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 292 of file tawaki.h.

#define RC_PPM_TICKS_PER_USEC   6

PPM radio defines.

available on RC2

Definition at line 654 of file tawaki.h.

#define SDIO_AF   12

Definition at line 800 of file tawaki.h.

#define SDIO_CK_PIN   GPIO12

Definition at line 797 of file tawaki.h.

#define SDIO_CK_PORT   GPIOC

Definition at line 796 of file tawaki.h.

#define SDIO_CMD_PIN   GPIO2

Definition at line 799 of file tawaki.h.

#define SDIO_CMD_PORT   GPIOD

Definition at line 798 of file tawaki.h.

#define SDIO_D0_PIN   GPIO8

Definition at line 789 of file tawaki.h.

#define SDIO_D0_PORT   GPIOC

SDIO.

Definition at line 788 of file tawaki.h.

#define SDIO_D1_PIN   GPIO9

Definition at line 791 of file tawaki.h.

#define SDIO_D1_PORT   GPIOC

Definition at line 790 of file tawaki.h.

#define SDIO_D2_PIN   GPIO10

Definition at line 793 of file tawaki.h.

#define SDIO_D2_PORT   GPIOC

Definition at line 792 of file tawaki.h.

#define SDIO_D3_PIN   GPIO11

Definition at line 795 of file tawaki.h.

#define SDIO_D3_PORT   GPIOC

Definition at line 794 of file tawaki.h.

#define SDLOG_BAT_ADC   ADCD1

Definition at line 802 of file tawaki.h.

#define SDLOG_BAT_CHAN   ADC_CHANNEL_IN10

Definition at line 803 of file tawaki.h.

#define SDLOG_USB_LED   4

Definition at line 805 of file tawaki.h.

#define SDLOG_USB_VBUS_PIN   GPIO9

Definition at line 807 of file tawaki.h.

#define SDLOG_USB_VBUS_PORT   GPIOA

Definition at line 806 of file tawaki.h.

#define SPEKTRUM_BIND_PIN   GPIO1

Definition at line 643 of file tawaki.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOB

Definition at line 644 of file tawaki.h.

#define SPEKTRUM_BIND_WAIT   30000

Definition at line 647 of file tawaki.h.

#define SPI2_GPIO_AF   GPIO_AF5

Definition at line 748 of file tawaki.h.

#define SPI2_GPIO_MISO   GPIO14

Definition at line 750 of file tawaki.h.

#define SPI2_GPIO_MOSI   GPIO15

Definition at line 752 of file tawaki.h.

#define SPI2_GPIO_PORT_MISO   GPIOB

Definition at line 749 of file tawaki.h.

#define SPI2_GPIO_PORT_MOSI   GPIOB

Definition at line 751 of file tawaki.h.

#define SPI2_GPIO_PORT_SCK   GPIOD

Definition at line 753 of file tawaki.h.

#define SPI2_GPIO_SCK   GPIO3

Definition at line 754 of file tawaki.h.

#define SPI4_GPIO_AF   GPIO_AF5

SPI Config.

Definition at line 739 of file tawaki.h.

#define SPI4_GPIO_MISO   GPIO5

Definition at line 741 of file tawaki.h.

#define SPI4_GPIO_MOSI   GPIO6

Definition at line 743 of file tawaki.h.

#define SPI4_GPIO_PORT_MISO   GPIOE

Definition at line 740 of file tawaki.h.

#define SPI4_GPIO_PORT_MOSI   GPIOE

Definition at line 742 of file tawaki.h.

#define SPI4_GPIO_PORT_SCK   GPIOE

Definition at line 744 of file tawaki.h.

#define SPI4_GPIO_SCK   GPIO2

Definition at line 745 of file tawaki.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO12

Definition at line 758 of file tawaki.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOB

Definition at line 757 of file tawaki.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO3

Definition at line 761 of file tawaki.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 760 of file tawaki.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO7

Definition at line 764 of file tawaki.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOA

Definition at line 763 of file tawaki.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO0

Definition at line 767 of file tawaki.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOB

Definition at line 766 of file tawaki.h.

#define SPI_SELECT_SLAVE4_PIN   GPIO1

Definition at line 770 of file tawaki.h.

#define SPI_SELECT_SLAVE4_PORT   GPIOB

Definition at line 769 of file tawaki.h.

#define SPI_SELECT_SLAVE5_PIN   GPIO4

Definition at line 773 of file tawaki.h.

#define SPI_SELECT_SLAVE5_PORT   GPIOE

Definition at line 772 of file tawaki.h.

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

I2C defines.

Definition at line 680 of file tawaki.h.

#define UART2_GPIO_AF   7

Definition at line 580 of file tawaki.h.

#define UART2_GPIO_PORT_RX   GPIOD

Definition at line 578 of file tawaki.h.

#define UART2_GPIO_PORT_TX   GPIOD

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

Definition at line 576 of file tawaki.h.

#define UART2_GPIO_RX   GPIO6

Definition at line 579 of file tawaki.h.

#define UART2_GPIO_TX   GPIO5

Definition at line 577 of file tawaki.h.

#define UART2_HW_FLOW_CONTROL   FALSE

Definition at line 582 of file tawaki.h.

#define UART3_GPIO_AF   7

Definition at line 594 of file tawaki.h.

#define UART3_GPIO_PORT_RX   GPIOD

Definition at line 592 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 590 of file tawaki.h.

#define UART3_GPIO_RX   GPIO9

Definition at line 593 of file tawaki.h.

#define UART3_GPIO_TX   GPIO8

Definition at line 591 of file tawaki.h.

#define UART4_GPIO_AF   8

Definition at line 610 of file tawaki.h.

#define UART4_GPIO_PORT_RX   GPIOA

Definition at line 608 of file tawaki.h.

#define UART4_GPIO_PORT_TX   GPIOA

UART4 on AUXa (not configured by default)

Definition at line 606 of file tawaki.h.

#define UART4_GPIO_RX   GPIO1

Definition at line 609 of file tawaki.h.

#define UART4_GPIO_TX   GPIO0

Definition at line 607 of file tawaki.h.

#define UART6_GPIO_AF   8

Definition at line 638 of file tawaki.h.

#define UART6_GPIO_PORT_RX   GPIOC

Definition at line 636 of file tawaki.h.

#define UART6_GPIO_RX   GPIO6

Definition at line 637 of file tawaki.h.

#define UART7_GPIO_AF   12

Definition at line 600 of file tawaki.h.

#define UART7_GPIO_PORT_RX   GPIOB

Definition at line 598 of file tawaki.h.

#define UART7_GPIO_PORT_TX   GPIOA

Definition at line 596 of file tawaki.h.

#define UART7_GPIO_RX   GPIO3

Definition at line 599 of file tawaki.h.

#define UART7_GPIO_TX   GPIO15

Definition at line 597 of file tawaki.h.

#define UART8_GPIO_AF   8

Definition at line 631 of file tawaki.h.

#define UART8_GPIO_PORT_RX   GPIOE

Definition at line 629 of file tawaki.h.

#define UART8_GPIO_RX   GPIO0

Definition at line 630 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 782 of file tawaki.h.

#define USE_DSHOT_TIM4   1

Definition at line 489 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_PWM10   0

Definition at line 296 of file tawaki.h.

#define USE_PWM11   0

Definition at line 311 of file tawaki.h.

#define USE_PWM12   0

Definition at line 326 of file tawaki.h.

#define USE_PWM13   0

Definition at line 341 of file tawaki.h.

#define USE_PWM14   0

Definition at line 356 of file tawaki.h.

#define USE_PWM15   0

Definition at line 371 of file tawaki.h.

#define USE_PWM16   0

Definition at line 386 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_PWM9   0

Definition at line 281 of file tawaki.h.

#define USE_UART6_RX   TRUE

Definition at line 634 of file tawaki.h.

#define USE_UART6_TX   FALSE

Definition at line 635 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 625 of file tawaki.h.

#define USE_UART8_TX   FALSE

Definition at line 627 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.

#define WS2812D1_AF   2

Definition at line 824 of file tawaki.h.

#define WS2812D1_CFG_DEF
Value:
{ \
.dma_stream = STM32_PWM5_UP_DMA_STREAM, \
.dma_channel = STM32_PWM5_UP_DMA_CHANNEL, \
.dma_priority = STM32_PWM5_UP_DMA_PRIORITY, \
.pwm_channel = 0, \
.pwmp = &PWMD5 \
}
#define STM32_PWM5_UP_DMA_CHANNEL
Definition: mcuconf.h:310
#define STM32_PWM5_UP_DMA_PRIORITY
Definition: mcuconf.h:312
#define STM32_PWM5_UP_DMA_STREAM
Definition: mcuconf.h:309

Definition at line 825 of file tawaki.h.

#define WS2812D1_GPIO   GPIOA

For WS2812.

Definition at line 822 of file tawaki.h.

#define WS2812D1_PIN   GPIO0

Definition at line 823 of file tawaki.h.