Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
chimera.h File Reference
+ Include dependency graph for chimera.h:

Go to the source code of this file.

Macros

#define BOARD_CHIMERA
 
#define AHB_CLK   STM32_HCLK
 ChibiOS board file. More...
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOB
 
#define LED_1_GPIO_PIN   GPIO12
 
#define LED_1_GPIO_ON   gpio_set
 
#define LED_1_GPIO_OFF   gpio_clear
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOB
 
#define LED_2_GPIO_PIN   GPIO13
 
#define LED_2_GPIO_ON   gpio_set
 
#define LED_2_GPIO_OFF   gpio_clear
 
#define USE_LED_3   1
 
#define LED_3_GPIO   GPIOD
 
#define LED_3_GPIO_PIN   GPIO10
 
#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   GPIO11
 
#define LED_4_GPIO_ON   gpio_set
 
#define LED_4_GPIO_OFF   gpio_clear
 
#define USE_LED_5   0
 
#define LED_5_GPIO   GPIOA
 
#define LED_5_GPIO_PIN   GPIO5
 
#define LED_5_GPIO_ON   gpio_set
 
#define LED_5_GPIO_OFF   gpio_clear
 
#define USE_LED_6   0
 
#define LED_6_GPIO   GPIOA
 
#define LED_6_GPIO_PIN   GPIO3
 
#define LED_6_GPIO_ON   gpio_set
 
#define LED_6_GPIO_OFF   gpio_clear
 
#define USE_LED_7   0
 
#define LED_7_GPIO   GPIOA
 
#define LED_7_GPIO_PIN   GPIO2
 
#define LED_7_GPIO_ON   gpio_set
 
#define LED_7_GPIO_OFF   gpio_clear
 
#define USE_LED_8   0
 
#define LED_8_GPIO   GPIOA
 
#define LED_8_GPIO_PIN   GPIO0
 
#define LED_8_GPIO_ON   gpio_set
 
#define LED_8_GPIO_OFF   gpio_clear
 
#define USE_LED_9   0
 
#define LED_9_GPIO   GPIOC
 
#define LED_9_GPIO_PIN   GPIO3
 
#define LED_9_GPIO_ON   gpio_set
 
#define LED_9_GPIO_OFF   gpio_clear
 
#define USE_LED_10   0
 
#define LED_10_GPIO   GPIOC
 
#define LED_10_GPIO_PIN   GPIO2
 
#define LED_10_GPIO_ON   gpio_set
 
#define LED_10_GPIO_OFF   gpio_clear
 
#define USE_LED_11   0
 
#define LED_11_GPIO   GPIOC
 
#define LED_11_GPIO_PIN   GPIO6
 
#define LED_11_GPIO_ON   gpio_set
 
#define LED_11_GPIO_OFF   gpio_clear
 
#define USE_LED_12   0
 
#define LED_12_GPIO   GPIOC
 
#define LED_12_GPIO_PIN   GPIO7
 
#define LED_12_GPIO_ON   gpio_set
 
#define LED_12_GPIO_OFF   gpio_clear
 
#define USE_ADC_7   1
 
#define AD1_7_CHANNEL   ADC_CHANNEL_IN4
 
#define ADC_7   AD1_7
 
#define ADC_7_GPIO_PORT   GPIOA
 
#define ADC_7_GPIO_PIN   GPIO4
 
#define ADC_CHANNEL_VSUPPLY   ADC_7
 
#define VBAT_R1   3300.0f
 
#define VBAT_R2   22000.0f
 
#define DefaultVoltageOfAdc(adc)   ((3.3f/4096.0f)*((VBAT_R1+VBAT_R2)/VBAT_R1)*adc)
 
#define USE_PWM0   1
 
#define PWM_SERVO_0   0
 
#define PWM_SERVO_0_GPIO   GPIOA
 
#define PWM_SERVO_0_PIN   GPIO6
 
#define PWM_SERVO_0_AF   GPIO_AF2
 
#define PWM_SERVO_0_DRIVER   PWMD3
 
#define PWM_SERVO_0_CHANNEL   0
 
#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM1   1
 
#define PWM_SERVO_1   1
 
#define PWM_SERVO_1_GPIO   GPIOA
 
#define PWM_SERVO_1_PIN   GPIO7
 
#define PWM_SERVO_1_AF   GPIO_AF2
 
#define PWM_SERVO_1_DRIVER   PWMD3
 
#define PWM_SERVO_1_CHANNEL   1
 
#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM2   1
 
#define PWM_SERVO_2   2
 
#define PWM_SERVO_2_GPIO   GPIOB
 
#define PWM_SERVO_2_PIN   GPIO0
 
#define PWM_SERVO_2_AF   GPIO_AF2
 
#define PWM_SERVO_2_DRIVER   PWMD3
 
#define PWM_SERVO_2_CHANNEL   2
 
#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM3   1
 
#define PWM_SERVO_3   3
 
#define PWM_SERVO_3_GPIO   GPIOB
 
#define PWM_SERVO_3_PIN   GPIO1
 
#define PWM_SERVO_3_AF   GPIO_AF2
 
#define PWM_SERVO_3_DRIVER   PWMD3
 
#define PWM_SERVO_3_CHANNEL   3
 
#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM4   1
 
#define PWM_SERVO_4   4
 
#define PWM_SERVO_4_GPIO   GPIOD
 
#define PWM_SERVO_4_PIN   GPIO12
 
#define PWM_SERVO_4_AF   GPIO_AF2
 
#define PWM_SERVO_4_DRIVER   PWMD4
 
#define PWM_SERVO_4_CHANNEL   0
 
#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM5   1
 
#define PWM_SERVO_5   5
 
#define PWM_SERVO_5_GPIO   GPIOD
 
#define PWM_SERVO_5_PIN   GPIO13
 
#define PWM_SERVO_5_AF   GPIO_AF2
 
#define PWM_SERVO_5_DRIVER   PWMD4
 
#define PWM_SERVO_5_CHANNEL   1
 
#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM6   1
 
#define PWM_SERVO_6   6
 
#define PWM_SERVO_6_GPIO   GPIOD
 
#define PWM_SERVO_6_PIN   GPIO14
 
#define PWM_SERVO_6_AF   GPIO_AF2
 
#define PWM_SERVO_6_DRIVER   PWMD4
 
#define PWM_SERVO_6_CHANNEL   2
 
#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define PWM_SERVO_7_ACTIVE   PWM_OUTPUT_DISABLED
 
#define PWM_CONF_TIM3   1
 
#define PWM_CONF3_DEF
 
#define PWM_CONF_TIM4   1
 
#define PWM_CONF4_DEF
 
#define UART2_GPIO_PORT_TX   GPIOD
 UART2 (with optional flow control activated 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   TRUE
 
#define UART1_GPIO_PORT_TX   GPIOB
 UART3 (XBee slot), UART8 (GPS) and UART1 (Companion) are configured as UART from ChibiOS board file by default. More...
 
#define UART1_GPIO_TX   GPIO6
 
#define UART1_GPIO_PORT_RX   GPIOB
 
#define UART1_GPIO_RX   GPIO7
 
#define UART1_GPIO_AF   7
 
#define UART3_GPIO_PORT_TX   GPIOD
 
#define UART3_GPIO_TX   GPIO8
 
#define UART3_GPIO_PORT_RX   GPIOD
 
#define UART3_GPIO_RX   GPIO9
 
#define UART3_GPIO_AF   7
 
#define UART8_GPIO_PORT_TX   GPIOE
 
#define UART8_GPIO_TX   GPIO0
 
#define UART8_GPIO_PORT_RX   GPIOE
 
#define UART8_GPIO_RX   GPIO1
 
#define UART8_GPIO_AF   8
 
#define USE_UART7_RX   TRUE
 SBUS / Spektrum port. More...
 
#define USE_UART7_TX   FALSE
 
#define UART7_GPIO_PORT_RX   GPIOE
 
#define UART7_GPIO_RX   GPIO7
 
#define UART7_GPIO_AF   8
 
#define USE_UART4_RX   TRUE
 
#define USE_UART4_TX   FALSE
 
#define UART4_GPIO_PORT_RX   GPIOA
 
#define UART4_GPIO_RX   GPIO1
 
#define UART4_GPIO_AF   8
 
#define SPEKTRUM_BIND_PIN   GPIO7
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOC
 
#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_2
 
#define PPM_TIMER   ICUD5
 
#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   ICUD8
 
#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_2
 
#define PWM_INPUT2_GPIO_PORT   GPIOC
 
#define PWM_INPUT2_GPIO_PIN   GPIO7
 
#define PWM_INPUT2_GPIO_AF   GPIO_AF3
 
#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 I2C1_CLOCK_SPEED   400000
 
#define I2C1_CFG_DEF
 
#define I2C2_CLOCK_SPEED   400000
 
#define I2C2_CFG_DEF
 
#define SPI1_GPIO_AF   GPIO_AF5
 SPI Config. More...
 
#define SPI1_GPIO_PORT_MISO   GPIOB
 
#define SPI1_GPIO_MISO   GPIO4
 
#define SPI1_GPIO_PORT_MOSI   GPIOB
 
#define SPI1_GPIO_MOSI   GPIO5
 
#define SPI1_GPIO_PORT_SCK   GPIO3
 
#define SPI1_GPIO_SCK   GPIO3
 
#define SPI_SELECT_SLAVE0_PORT   GPIOA
 
#define SPI_SELECT_SLAVE0_PIN   GPIO15
 
#define SPI_SELECT_SLAVE1_PORT   GPIOA
 
#define SPI_SELECT_SLAVE1_PIN   GPIO5
 
#define SPI_SELECT_SLAVE2_PORT   GPIOA
 
#define SPI_SELECT_SLAVE2_PIN   GPIO3
 
#define SPI_SELECT_SLAVE3_PORT   GPIOA
 
#define SPI_SELECT_SLAVE3_PIN   GPIO2
 
#define SPI_SELECT_SLAVE4_PORT   GPIOA
 
#define SPI_SELECT_SLAVE4_PIN   GPIO0
 
#define SPI_SELECT_SLAVE5_PORT   GPIOC
 
#define SPI_SELECT_SLAVE5_PIN   GPIO3
 
#define USE_BARO_BOARD   1
 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   AD1_7_CHANNEL
 
#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

◆ ActuatorDefaultSet

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

Definition at line 596 of file chimera.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 598 of file chimera.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 597 of file chimera.h.

◆ AD1_7_CHANNEL

#define AD1_7_CHANNEL   ADC_CHANNEL_IN4

Definition at line 188 of file chimera.h.

◆ ADC_7

#define ADC_7   AD1_7

Definition at line 189 of file chimera.h.

◆ ADC_7_GPIO_PIN

#define ADC_7_GPIO_PIN   GPIO4

Definition at line 191 of file chimera.h.

◆ ADC_7_GPIO_PORT

#define ADC_7_GPIO_PORT   GPIOA

Definition at line 190 of file chimera.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   ADC_7

Definition at line 196 of file chimera.h.

◆ AHB_CLK

#define AHB_CLK   STM32_HCLK

ChibiOS board file.

PPRZ definitions

Definition at line 18 of file chimera.h.

◆ BOARD_CHIMERA

#define BOARD_CHIMERA

Definition at line 4 of file chimera.h.

◆ DEFAULT_ACTUATORS

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

Definition at line 595 of file chimera.h.

◆ DefaultVoltageOfAdc

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

Definition at line 206 of file chimera.h.

◆ I2C1_CFG_DEF

#define I2C1_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}

Definition at line 490 of file chimera.h.

◆ I2C1_CLOCK_SPEED

#define I2C1_CLOCK_SPEED   400000

Definition at line 486 of file chimera.h.

◆ I2C2_CFG_DEF

#define I2C2_CFG_DEF
Value:
{ \
.cr1 = STM32_CR1_DNF(0), \
.cr2 = 0 \
}

Definition at line 511 of file chimera.h.

◆ I2C2_CLOCK_SPEED

#define I2C2_CLOCK_SPEED   400000

Definition at line 507 of file chimera.h.

◆ I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR

#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 477 of file chimera.h.

◆ I2C_STD_100KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR

#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 480 of file chimera.h.

◆ LED_10_GPIO

#define LED_10_GPIO   GPIOC

Definition at line 109 of file chimera.h.

◆ LED_10_GPIO_OFF

#define LED_10_GPIO_OFF   gpio_clear

Definition at line 112 of file chimera.h.

◆ LED_10_GPIO_ON

#define LED_10_GPIO_ON   gpio_set

Definition at line 111 of file chimera.h.

◆ LED_10_GPIO_PIN

#define LED_10_GPIO_PIN   GPIO2

Definition at line 110 of file chimera.h.

◆ LED_11_GPIO

#define LED_11_GPIO   GPIOC

Definition at line 118 of file chimera.h.

◆ LED_11_GPIO_OFF

#define LED_11_GPIO_OFF   gpio_clear

Definition at line 121 of file chimera.h.

◆ LED_11_GPIO_ON

#define LED_11_GPIO_ON   gpio_set

Definition at line 120 of file chimera.h.

◆ LED_11_GPIO_PIN

#define LED_11_GPIO_PIN   GPIO6

Definition at line 119 of file chimera.h.

◆ LED_12_GPIO

#define LED_12_GPIO   GPIOC

Definition at line 127 of file chimera.h.

◆ LED_12_GPIO_OFF

#define LED_12_GPIO_OFF   gpio_clear

Definition at line 130 of file chimera.h.

◆ LED_12_GPIO_ON

#define LED_12_GPIO_ON   gpio_set

Definition at line 129 of file chimera.h.

◆ LED_12_GPIO_PIN

#define LED_12_GPIO_PIN   GPIO7

Definition at line 128 of file chimera.h.

◆ LED_1_GPIO

#define LED_1_GPIO   GPIOB

Definition at line 28 of file chimera.h.

◆ LED_1_GPIO_OFF

#define LED_1_GPIO_OFF   gpio_clear

Definition at line 31 of file chimera.h.

◆ LED_1_GPIO_ON

#define LED_1_GPIO_ON   gpio_set

Definition at line 30 of file chimera.h.

◆ LED_1_GPIO_PIN

#define LED_1_GPIO_PIN   GPIO12

Definition at line 29 of file chimera.h.

◆ LED_2_GPIO

#define LED_2_GPIO   GPIOB

Definition at line 37 of file chimera.h.

◆ LED_2_GPIO_OFF

#define LED_2_GPIO_OFF   gpio_clear

Definition at line 40 of file chimera.h.

◆ LED_2_GPIO_ON

#define LED_2_GPIO_ON   gpio_set

Definition at line 39 of file chimera.h.

◆ LED_2_GPIO_PIN

#define LED_2_GPIO_PIN   GPIO13

Definition at line 38 of file chimera.h.

◆ LED_3_GPIO

#define LED_3_GPIO   GPIOD

Definition at line 46 of file chimera.h.

◆ LED_3_GPIO_OFF

#define LED_3_GPIO_OFF   gpio_clear

Definition at line 49 of file chimera.h.

◆ LED_3_GPIO_ON

#define LED_3_GPIO_ON   gpio_set

Definition at line 48 of file chimera.h.

◆ LED_3_GPIO_PIN

#define LED_3_GPIO_PIN   GPIO10

Definition at line 47 of file chimera.h.

◆ LED_4_GPIO

#define LED_4_GPIO   GPIOD

Definition at line 55 of file chimera.h.

◆ LED_4_GPIO_OFF

#define LED_4_GPIO_OFF   gpio_clear

Definition at line 58 of file chimera.h.

◆ LED_4_GPIO_ON

#define LED_4_GPIO_ON   gpio_set

Definition at line 57 of file chimera.h.

◆ LED_4_GPIO_PIN

#define LED_4_GPIO_PIN   GPIO11

Definition at line 56 of file chimera.h.

◆ LED_5_GPIO

#define LED_5_GPIO   GPIOA

Definition at line 64 of file chimera.h.

◆ LED_5_GPIO_OFF

#define LED_5_GPIO_OFF   gpio_clear

Definition at line 67 of file chimera.h.

◆ LED_5_GPIO_ON

#define LED_5_GPIO_ON   gpio_set

Definition at line 66 of file chimera.h.

◆ LED_5_GPIO_PIN

#define LED_5_GPIO_PIN   GPIO5

Definition at line 65 of file chimera.h.

◆ LED_6_GPIO

#define LED_6_GPIO   GPIOA

Definition at line 73 of file chimera.h.

◆ LED_6_GPIO_OFF

#define LED_6_GPIO_OFF   gpio_clear

Definition at line 76 of file chimera.h.

◆ LED_6_GPIO_ON

#define LED_6_GPIO_ON   gpio_set

Definition at line 75 of file chimera.h.

◆ LED_6_GPIO_PIN

#define LED_6_GPIO_PIN   GPIO3

Definition at line 74 of file chimera.h.

◆ LED_7_GPIO

#define LED_7_GPIO   GPIOA

Definition at line 82 of file chimera.h.

◆ LED_7_GPIO_OFF

#define LED_7_GPIO_OFF   gpio_clear

Definition at line 85 of file chimera.h.

◆ LED_7_GPIO_ON

#define LED_7_GPIO_ON   gpio_set

Definition at line 84 of file chimera.h.

◆ LED_7_GPIO_PIN

#define LED_7_GPIO_PIN   GPIO2

Definition at line 83 of file chimera.h.

◆ LED_8_GPIO

#define LED_8_GPIO   GPIOA

Definition at line 91 of file chimera.h.

◆ LED_8_GPIO_OFF

#define LED_8_GPIO_OFF   gpio_clear

Definition at line 94 of file chimera.h.

◆ LED_8_GPIO_ON

#define LED_8_GPIO_ON   gpio_set

Definition at line 93 of file chimera.h.

◆ LED_8_GPIO_PIN

#define LED_8_GPIO_PIN   GPIO0

Definition at line 92 of file chimera.h.

◆ LED_9_GPIO

#define LED_9_GPIO   GPIOC

Definition at line 100 of file chimera.h.

◆ LED_9_GPIO_OFF

#define LED_9_GPIO_OFF   gpio_clear

Definition at line 103 of file chimera.h.

◆ LED_9_GPIO_ON

#define LED_9_GPIO_ON   gpio_set

Definition at line 102 of file chimera.h.

◆ LED_9_GPIO_PIN

#define LED_9_GPIO_PIN   GPIO3

Definition at line 101 of file chimera.h.

◆ PPM_CHANNEL

#define PPM_CHANNEL   ICU_CHANNEL_2

Definition at line 451 of file chimera.h.

◆ PPM_TIMER

#define PPM_TIMER   ICUD5

Definition at line 452 of file chimera.h.

◆ PPM_TIMER_FREQUENCY

#define PPM_TIMER_FREQUENCY   6000000

Definition at line 450 of file chimera.h.

◆ PWM_CONF3_DEF

#define PWM_CONF3_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM3_SERVO_HZ, \
NULL, \
{ \
{ PWM_SERVO_0_ACTIVE, NULL }, \
{ PWM_SERVO_1_ACTIVE, NULL }, \
{ PWM_SERVO_2_ACTIVE, NULL }, \
{ PWM_SERVO_3_ACTIVE, NULL }, \
}, \
0, \
0 \
}

Definition at line 340 of file chimera.h.

◆ PWM_CONF4_DEF

#define PWM_CONF4_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM4_SERVO_HZ, \
NULL, \
{ \
{ PWM_SERVO_4_ACTIVE, NULL }, \
{ PWM_SERVO_5_ACTIVE, NULL }, \
{ PWM_SERVO_6_ACTIVE, NULL }, \
{ PWM_SERVO_7_ACTIVE, NULL }, \
}, \
0, \
0 \
}

Definition at line 359 of file chimera.h.

◆ PWM_CONF_TIM3

#define PWM_CONF_TIM3   1

Definition at line 338 of file chimera.h.

◆ PWM_CONF_TIM4

#define PWM_CONF_TIM4   1

Definition at line 357 of file chimera.h.

◆ PWM_INPUT1_CHANNEL

#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1

Definition at line 459 of file chimera.h.

◆ PWM_INPUT1_GPIO_AF

#define PWM_INPUT1_GPIO_AF   GPIO_AF1

Definition at line 462 of file chimera.h.

◆ PWM_INPUT1_GPIO_PIN

#define PWM_INPUT1_GPIO_PIN   GPIO0

Definition at line 461 of file chimera.h.

◆ PWM_INPUT1_GPIO_PORT

#define PWM_INPUT1_GPIO_PORT   GPIOA

Definition at line 460 of file chimera.h.

◆ PWM_INPUT1_ICU

#define PWM_INPUT1_ICU   ICUD2

Definition at line 458 of file chimera.h.

◆ PWM_INPUT2_CHANNEL

#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_2

Definition at line 466 of file chimera.h.

◆ PWM_INPUT2_GPIO_AF

#define PWM_INPUT2_GPIO_AF   GPIO_AF3

Definition at line 469 of file chimera.h.

◆ PWM_INPUT2_GPIO_PIN

#define PWM_INPUT2_GPIO_PIN   GPIO7

Definition at line 468 of file chimera.h.

◆ PWM_INPUT2_GPIO_PORT

#define PWM_INPUT2_GPIO_PORT   GPIOC

Definition at line 467 of file chimera.h.

◆ PWM_INPUT2_ICU

#define PWM_INPUT2_ICU   ICUD8

Definition at line 465 of file chimera.h.

◆ PWM_SERVO_0

#define PWM_SERVO_0   0

Definition at line 217 of file chimera.h.

◆ PWM_SERVO_0_ACTIVE

#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 223 of file chimera.h.

◆ PWM_SERVO_0_AF

#define PWM_SERVO_0_AF   GPIO_AF2

Definition at line 220 of file chimera.h.

◆ PWM_SERVO_0_CHANNEL

#define PWM_SERVO_0_CHANNEL   0

Definition at line 222 of file chimera.h.

◆ PWM_SERVO_0_DRIVER

#define PWM_SERVO_0_DRIVER   PWMD3

Definition at line 221 of file chimera.h.

◆ PWM_SERVO_0_GPIO

#define PWM_SERVO_0_GPIO   GPIOA

Definition at line 218 of file chimera.h.

◆ PWM_SERVO_0_PIN

#define PWM_SERVO_0_PIN   GPIO6

Definition at line 219 of file chimera.h.

◆ PWM_SERVO_1

#define PWM_SERVO_1   1

Definition at line 232 of file chimera.h.

◆ PWM_SERVO_1_ACTIVE

#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 238 of file chimera.h.

◆ PWM_SERVO_1_AF

#define PWM_SERVO_1_AF   GPIO_AF2

Definition at line 235 of file chimera.h.

◆ PWM_SERVO_1_CHANNEL

#define PWM_SERVO_1_CHANNEL   1

Definition at line 237 of file chimera.h.

◆ PWM_SERVO_1_DRIVER

#define PWM_SERVO_1_DRIVER   PWMD3

Definition at line 236 of file chimera.h.

◆ PWM_SERVO_1_GPIO

#define PWM_SERVO_1_GPIO   GPIOA

Definition at line 233 of file chimera.h.

◆ PWM_SERVO_1_PIN

#define PWM_SERVO_1_PIN   GPIO7

Definition at line 234 of file chimera.h.

◆ PWM_SERVO_2

#define PWM_SERVO_2   2

Definition at line 247 of file chimera.h.

◆ PWM_SERVO_2_ACTIVE

#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 253 of file chimera.h.

◆ PWM_SERVO_2_AF

#define PWM_SERVO_2_AF   GPIO_AF2

Definition at line 250 of file chimera.h.

◆ PWM_SERVO_2_CHANNEL

#define PWM_SERVO_2_CHANNEL   2

Definition at line 252 of file chimera.h.

◆ PWM_SERVO_2_DRIVER

#define PWM_SERVO_2_DRIVER   PWMD3

Definition at line 251 of file chimera.h.

◆ PWM_SERVO_2_GPIO

#define PWM_SERVO_2_GPIO   GPIOB

Definition at line 248 of file chimera.h.

◆ PWM_SERVO_2_PIN

#define PWM_SERVO_2_PIN   GPIO0

Definition at line 249 of file chimera.h.

◆ PWM_SERVO_3

#define PWM_SERVO_3   3

Definition at line 262 of file chimera.h.

◆ PWM_SERVO_3_ACTIVE

#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 268 of file chimera.h.

◆ PWM_SERVO_3_AF

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 265 of file chimera.h.

◆ PWM_SERVO_3_CHANNEL

#define PWM_SERVO_3_CHANNEL   3

Definition at line 267 of file chimera.h.

◆ PWM_SERVO_3_DRIVER

#define PWM_SERVO_3_DRIVER   PWMD3

Definition at line 266 of file chimera.h.

◆ PWM_SERVO_3_GPIO

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 263 of file chimera.h.

◆ PWM_SERVO_3_PIN

#define PWM_SERVO_3_PIN   GPIO1

Definition at line 264 of file chimera.h.

◆ PWM_SERVO_4

#define PWM_SERVO_4   4

Definition at line 277 of file chimera.h.

◆ PWM_SERVO_4_ACTIVE

#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 283 of file chimera.h.

◆ PWM_SERVO_4_AF

#define PWM_SERVO_4_AF   GPIO_AF2

Definition at line 280 of file chimera.h.

◆ PWM_SERVO_4_CHANNEL

#define PWM_SERVO_4_CHANNEL   0

Definition at line 282 of file chimera.h.

◆ PWM_SERVO_4_DRIVER

#define PWM_SERVO_4_DRIVER   PWMD4

Definition at line 281 of file chimera.h.

◆ PWM_SERVO_4_GPIO

#define PWM_SERVO_4_GPIO   GPIOD

Definition at line 278 of file chimera.h.

◆ PWM_SERVO_4_PIN

#define PWM_SERVO_4_PIN   GPIO12

Definition at line 279 of file chimera.h.

◆ PWM_SERVO_5

#define PWM_SERVO_5   5

Definition at line 292 of file chimera.h.

◆ PWM_SERVO_5_ACTIVE

#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 298 of file chimera.h.

◆ PWM_SERVO_5_AF

#define PWM_SERVO_5_AF   GPIO_AF2

Definition at line 295 of file chimera.h.

◆ PWM_SERVO_5_CHANNEL

#define PWM_SERVO_5_CHANNEL   1

Definition at line 297 of file chimera.h.

◆ PWM_SERVO_5_DRIVER

#define PWM_SERVO_5_DRIVER   PWMD4

Definition at line 296 of file chimera.h.

◆ PWM_SERVO_5_GPIO

#define PWM_SERVO_5_GPIO   GPIOD

Definition at line 293 of file chimera.h.

◆ PWM_SERVO_5_PIN

#define PWM_SERVO_5_PIN   GPIO13

Definition at line 294 of file chimera.h.

◆ PWM_SERVO_6

#define PWM_SERVO_6   6

Definition at line 307 of file chimera.h.

◆ PWM_SERVO_6_ACTIVE

#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 313 of file chimera.h.

◆ PWM_SERVO_6_AF

#define PWM_SERVO_6_AF   GPIO_AF2

Definition at line 310 of file chimera.h.

◆ PWM_SERVO_6_CHANNEL

#define PWM_SERVO_6_CHANNEL   2

Definition at line 312 of file chimera.h.

◆ PWM_SERVO_6_DRIVER

#define PWM_SERVO_6_DRIVER   PWMD4

Definition at line 311 of file chimera.h.

◆ PWM_SERVO_6_GPIO

#define PWM_SERVO_6_GPIO   GPIOD

Definition at line 308 of file chimera.h.

◆ PWM_SERVO_6_PIN

#define PWM_SERVO_6_PIN   GPIO14

Definition at line 309 of file chimera.h.

◆ PWM_SERVO_7_ACTIVE

#define PWM_SERVO_7_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 330 of file chimera.h.

◆ RC_PPM_TICKS_PER_USEC

#define RC_PPM_TICKS_PER_USEC   6

PPM radio defines.

available on RC1

Definition at line 449 of file chimera.h.

◆ SDIO_AF

#define SDIO_AF   12

Definition at line 581 of file chimera.h.

◆ SDIO_CK_PIN

#define SDIO_CK_PIN   GPIO12

Definition at line 578 of file chimera.h.

◆ SDIO_CK_PORT

#define SDIO_CK_PORT   GPIOC

Definition at line 577 of file chimera.h.

◆ SDIO_CMD_PIN

#define SDIO_CMD_PIN   GPIO2

Definition at line 580 of file chimera.h.

◆ SDIO_CMD_PORT

#define SDIO_CMD_PORT   GPIOD

Definition at line 579 of file chimera.h.

◆ SDIO_D0_PIN

#define SDIO_D0_PIN   GPIO8

Definition at line 570 of file chimera.h.

◆ SDIO_D0_PORT

#define SDIO_D0_PORT   GPIOC

SDIO.

Definition at line 569 of file chimera.h.

◆ SDIO_D1_PIN

#define SDIO_D1_PIN   GPIO9

Definition at line 572 of file chimera.h.

◆ SDIO_D1_PORT

#define SDIO_D1_PORT   GPIOC

Definition at line 571 of file chimera.h.

◆ SDIO_D2_PIN

#define SDIO_D2_PIN   GPIO10

Definition at line 574 of file chimera.h.

◆ SDIO_D2_PORT

#define SDIO_D2_PORT   GPIOC

Definition at line 573 of file chimera.h.

◆ SDIO_D3_PIN

#define SDIO_D3_PIN   GPIO11

Definition at line 576 of file chimera.h.

◆ SDIO_D3_PORT

#define SDIO_D3_PORT   GPIOC

Definition at line 575 of file chimera.h.

◆ SDLOG_BAT_ADC

#define SDLOG_BAT_ADC   ADCD1

Definition at line 583 of file chimera.h.

◆ SDLOG_BAT_CHAN

#define SDLOG_BAT_CHAN   AD1_7_CHANNEL

Definition at line 584 of file chimera.h.

◆ SDLOG_USB_LED

#define SDLOG_USB_LED   4

Definition at line 586 of file chimera.h.

◆ SDLOG_USB_VBUS_PIN

#define SDLOG_USB_VBUS_PIN   GPIO9

Definition at line 588 of file chimera.h.

◆ SDLOG_USB_VBUS_PORT

#define SDLOG_USB_VBUS_PORT   GPIOA

Definition at line 587 of file chimera.h.

◆ SPEKTRUM_BIND_PIN

#define SPEKTRUM_BIND_PIN   GPIO7

Definition at line 438 of file chimera.h.

◆ SPEKTRUM_BIND_PIN_PORT

#define SPEKTRUM_BIND_PIN_PORT   GPIOC

Definition at line 439 of file chimera.h.

◆ SPEKTRUM_BIND_WAIT

#define SPEKTRUM_BIND_WAIT   30000

Definition at line 442 of file chimera.h.

◆ SPI1_GPIO_AF

#define SPI1_GPIO_AF   GPIO_AF5

SPI Config.

Definition at line 529 of file chimera.h.

◆ SPI1_GPIO_MISO

#define SPI1_GPIO_MISO   GPIO4

Definition at line 531 of file chimera.h.

◆ SPI1_GPIO_MOSI

#define SPI1_GPIO_MOSI   GPIO5

Definition at line 533 of file chimera.h.

◆ SPI1_GPIO_PORT_MISO

#define SPI1_GPIO_PORT_MISO   GPIOB

Definition at line 530 of file chimera.h.

◆ SPI1_GPIO_PORT_MOSI

#define SPI1_GPIO_PORT_MOSI   GPIOB

Definition at line 532 of file chimera.h.

◆ SPI1_GPIO_PORT_SCK

#define SPI1_GPIO_PORT_SCK   GPIO3

Definition at line 534 of file chimera.h.

◆ SPI1_GPIO_SCK

#define SPI1_GPIO_SCK   GPIO3

Definition at line 535 of file chimera.h.

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   GPIO15

Definition at line 539 of file chimera.h.

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   GPIOA

Definition at line 538 of file chimera.h.

◆ SPI_SELECT_SLAVE1_PIN

#define SPI_SELECT_SLAVE1_PIN   GPIO5

Definition at line 542 of file chimera.h.

◆ SPI_SELECT_SLAVE1_PORT

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 541 of file chimera.h.

◆ SPI_SELECT_SLAVE2_PIN

#define SPI_SELECT_SLAVE2_PIN   GPIO3

Definition at line 545 of file chimera.h.

◆ SPI_SELECT_SLAVE2_PORT

#define SPI_SELECT_SLAVE2_PORT   GPIOA

Definition at line 544 of file chimera.h.

◆ SPI_SELECT_SLAVE3_PIN

#define SPI_SELECT_SLAVE3_PIN   GPIO2

Definition at line 548 of file chimera.h.

◆ SPI_SELECT_SLAVE3_PORT

#define SPI_SELECT_SLAVE3_PORT   GPIOA

Definition at line 547 of file chimera.h.

◆ SPI_SELECT_SLAVE4_PIN

#define SPI_SELECT_SLAVE4_PIN   GPIO0

Definition at line 551 of file chimera.h.

◆ SPI_SELECT_SLAVE4_PORT

#define SPI_SELECT_SLAVE4_PORT   GPIOA

Definition at line 550 of file chimera.h.

◆ SPI_SELECT_SLAVE5_PIN

#define SPI_SELECT_SLAVE5_PIN   GPIO3

Definition at line 554 of file chimera.h.

◆ SPI_SELECT_SLAVE5_PORT

#define SPI_SELECT_SLAVE5_PORT   GPIOC

Definition at line 553 of file chimera.h.

◆ STM32_CR1_DNF

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

I2C defines.

Definition at line 475 of file chimera.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   7

Definition at line 394 of file chimera.h.

◆ UART1_GPIO_PORT_RX

#define UART1_GPIO_PORT_RX   GPIOB

Definition at line 392 of file chimera.h.

◆ UART1_GPIO_PORT_TX

#define UART1_GPIO_PORT_TX   GPIOB

UART3 (XBee slot), UART8 (GPS) and UART1 (Companion) are configured as UART from ChibiOS board file by default.

Definition at line 390 of file chimera.h.

◆ UART1_GPIO_RX

#define UART1_GPIO_RX   GPIO7

Definition at line 393 of file chimera.h.

◆ UART1_GPIO_TX

#define UART1_GPIO_TX   GPIO6

Definition at line 391 of file chimera.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   7

Definition at line 380 of file chimera.h.

◆ UART2_GPIO_PORT_RX

#define UART2_GPIO_PORT_RX   GPIOD

Definition at line 378 of file chimera.h.

◆ UART2_GPIO_PORT_TX

#define UART2_GPIO_PORT_TX   GPIOD

UART2 (with optional flow control activated by default)

Definition at line 376 of file chimera.h.

◆ UART2_GPIO_RX

#define UART2_GPIO_RX   GPIO6

Definition at line 379 of file chimera.h.

◆ UART2_GPIO_TX

#define UART2_GPIO_TX   GPIO5

Definition at line 377 of file chimera.h.

◆ UART2_HW_FLOW_CONTROL

#define UART2_HW_FLOW_CONTROL   TRUE

Definition at line 382 of file chimera.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   7

Definition at line 400 of file chimera.h.

◆ UART3_GPIO_PORT_RX

#define UART3_GPIO_PORT_RX   GPIOD

Definition at line 398 of file chimera.h.

◆ UART3_GPIO_PORT_TX

#define UART3_GPIO_PORT_TX   GPIOD

Definition at line 396 of file chimera.h.

◆ UART3_GPIO_RX

#define UART3_GPIO_RX   GPIO9

Definition at line 399 of file chimera.h.

◆ UART3_GPIO_TX

#define UART3_GPIO_TX   GPIO8

Definition at line 397 of file chimera.h.

◆ UART4_GPIO_AF

#define UART4_GPIO_AF   8

Definition at line 433 of file chimera.h.

◆ UART4_GPIO_PORT_RX

#define UART4_GPIO_PORT_RX   GPIOA

Definition at line 431 of file chimera.h.

◆ UART4_GPIO_RX

#define UART4_GPIO_RX   GPIO1

Definition at line 432 of file chimera.h.

◆ UART7_GPIO_AF

#define UART7_GPIO_AF   8

Definition at line 427 of file chimera.h.

◆ UART7_GPIO_PORT_RX

#define UART7_GPIO_PORT_RX   GPIOE

Definition at line 425 of file chimera.h.

◆ UART7_GPIO_RX

#define UART7_GPIO_RX   GPIO7

Definition at line 426 of file chimera.h.

◆ UART8_GPIO_AF

#define UART8_GPIO_AF   8

Definition at line 406 of file chimera.h.

◆ UART8_GPIO_PORT_RX

#define UART8_GPIO_PORT_RX   GPIOE

Definition at line 404 of file chimera.h.

◆ UART8_GPIO_PORT_TX

#define UART8_GPIO_PORT_TX   GPIOE

Definition at line 402 of file chimera.h.

◆ UART8_GPIO_RX

#define UART8_GPIO_RX   GPIO1

Definition at line 405 of file chimera.h.

◆ UART8_GPIO_TX

#define UART8_GPIO_TX   GPIO0

Definition at line 403 of file chimera.h.

◆ USE_ADC_7

#define USE_ADC_7   1

Definition at line 185 of file chimera.h.

◆ USE_BARO_BOARD

#define USE_BARO_BOARD   1

Baro.

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 563 of file chimera.h.

◆ USE_LED_1

#define USE_LED_1   1

Definition at line 26 of file chimera.h.

◆ USE_LED_10

#define USE_LED_10   0

Definition at line 107 of file chimera.h.

◆ USE_LED_11

#define USE_LED_11   0

Definition at line 116 of file chimera.h.

◆ USE_LED_12

#define USE_LED_12   0

Definition at line 125 of file chimera.h.

◆ USE_LED_2

#define USE_LED_2   1

Definition at line 35 of file chimera.h.

◆ USE_LED_3

#define USE_LED_3   1

Definition at line 44 of file chimera.h.

◆ USE_LED_4

#define USE_LED_4   1

Definition at line 53 of file chimera.h.

◆ USE_LED_5

#define USE_LED_5   0

Definition at line 62 of file chimera.h.

◆ USE_LED_6

#define USE_LED_6   0

Definition at line 71 of file chimera.h.

◆ USE_LED_7

#define USE_LED_7   0

Definition at line 80 of file chimera.h.

◆ USE_LED_8

#define USE_LED_8   0

Definition at line 89 of file chimera.h.

◆ USE_LED_9

#define USE_LED_9   0

Definition at line 98 of file chimera.h.

◆ USE_PWM0

#define USE_PWM0   1

Definition at line 214 of file chimera.h.

◆ USE_PWM1

#define USE_PWM1   1

Definition at line 229 of file chimera.h.

◆ USE_PWM2

#define USE_PWM2   1

Definition at line 244 of file chimera.h.

◆ USE_PWM3

#define USE_PWM3   1

Definition at line 259 of file chimera.h.

◆ USE_PWM4

#define USE_PWM4   1

Definition at line 274 of file chimera.h.

◆ USE_PWM5

#define USE_PWM5   1

Definition at line 289 of file chimera.h.

◆ USE_PWM6

#define USE_PWM6   1

Definition at line 304 of file chimera.h.

◆ USE_UART4_RX

#define USE_UART4_RX   TRUE

Definition at line 429 of file chimera.h.

◆ USE_UART4_TX

#define USE_UART4_TX   FALSE

Definition at line 430 of file chimera.h.

◆ USE_UART7_RX

#define USE_UART7_RX   TRUE

SBUS / Spektrum port.

Recommended config:

primary SBUS port is UART7, a.k.a. RC2 on Chimera board secondary port (in dual driver) is UART4, a.k.a. RC1 on Chimera board

primary Spektrum port is UART4, a.k.a. RC1 on Chimera board secondary port is UART7, a.k.a. RC2 on Chimera board

Definition at line 421 of file chimera.h.

◆ USE_UART7_TX

#define USE_UART7_TX   FALSE

Definition at line 423 of file chimera.h.

◆ VBAT_R1

#define VBAT_R1   3300.0f

Definition at line 204 of file chimera.h.

◆ VBAT_R2

#define VBAT_R2   22000.0f

Definition at line 205 of file chimera.h.

PWM_SERVO_0_ACTIVE
#define PWM_SERVO_0_ACTIVE
Definition: chimera.h:223
I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: chimera.h:477
PWM_SERVO_3_ACTIVE
#define PWM_SERVO_3_ACTIVE
Definition: chimera.h:268
PWM_SERVO_2_ACTIVE
#define PWM_SERVO_2_ACTIVE
Definition: chimera.h:253
TIM3_SERVO_HZ
#define TIM3_SERVO_HZ
Definition: actuators_pwm_arch.h:63
PWM_SERVO_4_ACTIVE
#define PWM_SERVO_4_ACTIVE
Definition: chimera.h:283
PWM_SERVO_5_ACTIVE
#define PWM_SERVO_5_ACTIVE
Definition: chimera.h:298
PWM_SERVO_6_ACTIVE
#define PWM_SERVO_6_ACTIVE
Definition: chimera.h:313
STM32_CR1_DNF
#define STM32_CR1_DNF(n)
I2C defines.
Definition: chimera.h:475
PWM_SERVO_7_ACTIVE
#define PWM_SERVO_7_ACTIVE
Definition: chimera.h:330
PWM_SERVO_1_ACTIVE
#define PWM_SERVO_1_ACTIVE
Definition: chimera.h:238
TIM4_SERVO_HZ
#define TIM4_SERVO_HZ
Definition: actuators_pwm_arch.h:66