Paparazzi UAS  v7.0_unstable
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 _CONCAT_BOARD_PARAM(_s1, _s2)   _s1 ## _s2
 ChibiOS board file. More...
 
#define CONCAT_BOARD_PARAM(_s1, _s2)   _CONCAT_BOARD_PARAM(_s1, _s2)
 
#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_PWM_TIM3   1
 
#define USE_PWM_TIM4   1
 
#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   "modules/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 
#define WS2812D1_GPIO   GPIOC
 For WS2812. More...
 
#define WS2812D1_PIN   GPIO6
 
#define WS2812D1_AF   3
 
#define WS2812D1_CFG_DEF
 

Macro Definition Documentation

◆ _CONCAT_BOARD_PARAM

#define _CONCAT_BOARD_PARAM (   _s1,
  _s2 
)    _s1 ## _s2

ChibiOS board file.

PPRZ definitions

Definition at line 18 of file chimera.h.

◆ ActuatorDefaultSet

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

Definition at line 583 of file chimera.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 585 of file chimera.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

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

◆ BOARD_CHIMERA

#define BOARD_CHIMERA

Definition at line 4 of file chimera.h.

◆ CONCAT_BOARD_PARAM

#define CONCAT_BOARD_PARAM (   _s1,
  _s2 
)    _CONCAT_BOARD_PARAM(_s1, _s2)

Definition at line 19 of file chimera.h.

◆ DEFAULT_ACTUATORS

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

Definition at line 582 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 \
}
#define I2C_FAST_400KHZ_DNF0_100NS_PCLK54MHZ_TIMINGR
Definition: chimera.h:464
#define STM32_CR1_DNF(n)
I2C defines.
Definition: chimera.h:462

Definition at line 477 of file chimera.h.

◆ I2C1_CLOCK_SPEED

#define I2C1_CLOCK_SPEED   400000

Definition at line 473 of file chimera.h.

◆ I2C2_CFG_DEF

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

Definition at line 498 of file chimera.h.

◆ I2C2_CLOCK_SPEED

#define I2C2_CLOCK_SPEED   400000

Definition at line 494 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 464 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 467 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 438 of file chimera.h.

◆ PPM_TIMER

#define PPM_TIMER   ICUD5

Definition at line 439 of file chimera.h.

◆ PPM_TIMER_FREQUENCY

#define PPM_TIMER_FREQUENCY   6000000

Definition at line 437 of file chimera.h.

◆ PWM_INPUT1_CHANNEL

#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1

Definition at line 446 of file chimera.h.

◆ PWM_INPUT1_GPIO_AF

#define PWM_INPUT1_GPIO_AF   GPIO_AF1

Definition at line 449 of file chimera.h.

◆ PWM_INPUT1_GPIO_PIN

#define PWM_INPUT1_GPIO_PIN   GPIO0

Definition at line 448 of file chimera.h.

◆ PWM_INPUT1_GPIO_PORT

#define PWM_INPUT1_GPIO_PORT   GPIOA

Definition at line 447 of file chimera.h.

◆ PWM_INPUT1_ICU

#define PWM_INPUT1_ICU   ICUD2

Definition at line 445 of file chimera.h.

◆ PWM_INPUT2_CHANNEL

#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_2

Definition at line 453 of file chimera.h.

◆ PWM_INPUT2_GPIO_AF

#define PWM_INPUT2_GPIO_AF   GPIO_AF3

Definition at line 456 of file chimera.h.

◆ PWM_INPUT2_GPIO_PIN

#define PWM_INPUT2_GPIO_PIN   GPIO7

Definition at line 455 of file chimera.h.

◆ PWM_INPUT2_GPIO_PORT

#define PWM_INPUT2_GPIO_PORT   GPIOC

Definition at line 454 of file chimera.h.

◆ PWM_INPUT2_ICU

#define PWM_INPUT2_ICU   ICUD8

Definition at line 452 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 436 of file chimera.h.

◆ SDIO_AF

#define SDIO_AF   12

Definition at line 568 of file chimera.h.

◆ SDIO_CK_PIN

#define SDIO_CK_PIN   GPIO12

Definition at line 565 of file chimera.h.

◆ SDIO_CK_PORT

#define SDIO_CK_PORT   GPIOC

Definition at line 564 of file chimera.h.

◆ SDIO_CMD_PIN

#define SDIO_CMD_PIN   GPIO2

Definition at line 567 of file chimera.h.

◆ SDIO_CMD_PORT

#define SDIO_CMD_PORT   GPIOD

Definition at line 566 of file chimera.h.

◆ SDIO_D0_PIN

#define SDIO_D0_PIN   GPIO8

Definition at line 557 of file chimera.h.

◆ SDIO_D0_PORT

#define SDIO_D0_PORT   GPIOC

SDIO.

Definition at line 556 of file chimera.h.

◆ SDIO_D1_PIN

#define SDIO_D1_PIN   GPIO9

Definition at line 559 of file chimera.h.

◆ SDIO_D1_PORT

#define SDIO_D1_PORT   GPIOC

Definition at line 558 of file chimera.h.

◆ SDIO_D2_PIN

#define SDIO_D2_PIN   GPIO10

Definition at line 561 of file chimera.h.

◆ SDIO_D2_PORT

#define SDIO_D2_PORT   GPIOC

Definition at line 560 of file chimera.h.

◆ SDIO_D3_PIN

#define SDIO_D3_PIN   GPIO11

Definition at line 563 of file chimera.h.

◆ SDIO_D3_PORT

#define SDIO_D3_PORT   GPIOC

Definition at line 562 of file chimera.h.

◆ SDLOG_BAT_ADC

#define SDLOG_BAT_ADC   ADCD1

Definition at line 570 of file chimera.h.

◆ SDLOG_BAT_CHAN

#define SDLOG_BAT_CHAN   AD1_7_CHANNEL

Definition at line 571 of file chimera.h.

◆ SDLOG_USB_LED

#define SDLOG_USB_LED   4

Definition at line 573 of file chimera.h.

◆ SDLOG_USB_VBUS_PIN

#define SDLOG_USB_VBUS_PIN   GPIO9

Definition at line 575 of file chimera.h.

◆ SDLOG_USB_VBUS_PORT

#define SDLOG_USB_VBUS_PORT   GPIOA

Definition at line 574 of file chimera.h.

◆ SPEKTRUM_BIND_PIN

#define SPEKTRUM_BIND_PIN   GPIO7

Definition at line 425 of file chimera.h.

◆ SPEKTRUM_BIND_PIN_PORT

#define SPEKTRUM_BIND_PIN_PORT   GPIOC

Definition at line 426 of file chimera.h.

◆ SPEKTRUM_BIND_WAIT

#define SPEKTRUM_BIND_WAIT   30000

Definition at line 429 of file chimera.h.

◆ SPI1_GPIO_AF

#define SPI1_GPIO_AF   GPIO_AF5

SPI Config.

Definition at line 516 of file chimera.h.

◆ SPI1_GPIO_MISO

#define SPI1_GPIO_MISO   GPIO4

Definition at line 518 of file chimera.h.

◆ SPI1_GPIO_MOSI

#define SPI1_GPIO_MOSI   GPIO5

Definition at line 520 of file chimera.h.

◆ SPI1_GPIO_PORT_MISO

#define SPI1_GPIO_PORT_MISO   GPIOB

Definition at line 517 of file chimera.h.

◆ SPI1_GPIO_PORT_MOSI

#define SPI1_GPIO_PORT_MOSI   GPIOB

Definition at line 519 of file chimera.h.

◆ SPI1_GPIO_PORT_SCK

#define SPI1_GPIO_PORT_SCK   GPIO3

Definition at line 521 of file chimera.h.

◆ SPI1_GPIO_SCK

#define SPI1_GPIO_SCK   GPIO3

Definition at line 522 of file chimera.h.

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   GPIO15

Definition at line 526 of file chimera.h.

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   GPIOA

Definition at line 525 of file chimera.h.

◆ SPI_SELECT_SLAVE1_PIN

#define SPI_SELECT_SLAVE1_PIN   GPIO5

Definition at line 529 of file chimera.h.

◆ SPI_SELECT_SLAVE1_PORT

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 528 of file chimera.h.

◆ SPI_SELECT_SLAVE2_PIN

#define SPI_SELECT_SLAVE2_PIN   GPIO3

Definition at line 532 of file chimera.h.

◆ SPI_SELECT_SLAVE2_PORT

#define SPI_SELECT_SLAVE2_PORT   GPIOA

Definition at line 531 of file chimera.h.

◆ SPI_SELECT_SLAVE3_PIN

#define SPI_SELECT_SLAVE3_PIN   GPIO2

Definition at line 535 of file chimera.h.

◆ SPI_SELECT_SLAVE3_PORT

#define SPI_SELECT_SLAVE3_PORT   GPIOA

Definition at line 534 of file chimera.h.

◆ SPI_SELECT_SLAVE4_PIN

#define SPI_SELECT_SLAVE4_PIN   GPIO0

Definition at line 538 of file chimera.h.

◆ SPI_SELECT_SLAVE4_PORT

#define SPI_SELECT_SLAVE4_PORT   GPIOA

Definition at line 537 of file chimera.h.

◆ SPI_SELECT_SLAVE5_PIN

#define SPI_SELECT_SLAVE5_PIN   GPIO3

Definition at line 541 of file chimera.h.

◆ SPI_SELECT_SLAVE5_PORT

#define SPI_SELECT_SLAVE5_PORT   GPIOC

Definition at line 540 of file chimera.h.

◆ STM32_CR1_DNF

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

I2C defines.

Definition at line 462 of file chimera.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   7

Definition at line 381 of file chimera.h.

◆ UART1_GPIO_PORT_RX

#define UART1_GPIO_PORT_RX   GPIOB

Definition at line 379 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 377 of file chimera.h.

◆ UART1_GPIO_RX

#define UART1_GPIO_RX   GPIO7

Definition at line 380 of file chimera.h.

◆ UART1_GPIO_TX

#define UART1_GPIO_TX   GPIO6

Definition at line 378 of file chimera.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   7

Definition at line 367 of file chimera.h.

◆ UART2_GPIO_PORT_RX

#define UART2_GPIO_PORT_RX   GPIOD

Definition at line 365 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 363 of file chimera.h.

◆ UART2_GPIO_RX

#define UART2_GPIO_RX   GPIO6

Definition at line 366 of file chimera.h.

◆ UART2_GPIO_TX

#define UART2_GPIO_TX   GPIO5

Definition at line 364 of file chimera.h.

◆ UART2_HW_FLOW_CONTROL

#define UART2_HW_FLOW_CONTROL   TRUE

Definition at line 369 of file chimera.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   7

Definition at line 387 of file chimera.h.

◆ UART3_GPIO_PORT_RX

#define UART3_GPIO_PORT_RX   GPIOD

Definition at line 385 of file chimera.h.

◆ UART3_GPIO_PORT_TX

#define UART3_GPIO_PORT_TX   GPIOD

Definition at line 383 of file chimera.h.

◆ UART3_GPIO_RX

#define UART3_GPIO_RX   GPIO9

Definition at line 386 of file chimera.h.

◆ UART3_GPIO_TX

#define UART3_GPIO_TX   GPIO8

Definition at line 384 of file chimera.h.

◆ UART4_GPIO_AF

#define UART4_GPIO_AF   8

Definition at line 420 of file chimera.h.

◆ UART4_GPIO_PORT_RX

#define UART4_GPIO_PORT_RX   GPIOA

Definition at line 418 of file chimera.h.

◆ UART4_GPIO_RX

#define UART4_GPIO_RX   GPIO1

Definition at line 419 of file chimera.h.

◆ UART7_GPIO_AF

#define UART7_GPIO_AF   8

Definition at line 414 of file chimera.h.

◆ UART7_GPIO_PORT_RX

#define UART7_GPIO_PORT_RX   GPIOE

Definition at line 412 of file chimera.h.

◆ UART7_GPIO_RX

#define UART7_GPIO_RX   GPIO7

Definition at line 413 of file chimera.h.

◆ UART8_GPIO_AF

#define UART8_GPIO_AF   8

Definition at line 393 of file chimera.h.

◆ UART8_GPIO_PORT_RX

#define UART8_GPIO_PORT_RX   GPIOE

Definition at line 391 of file chimera.h.

◆ UART8_GPIO_PORT_TX

#define UART8_GPIO_PORT_TX   GPIOE

Definition at line 389 of file chimera.h.

◆ UART8_GPIO_RX

#define UART8_GPIO_RX   GPIO1

Definition at line 392 of file chimera.h.

◆ UART8_GPIO_TX

#define UART8_GPIO_TX   GPIO0

Definition at line 390 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 550 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_PWM_TIM3

#define USE_PWM_TIM3   1

Definition at line 215 of file chimera.h.

◆ USE_PWM_TIM4

#define USE_PWM_TIM4   1

Definition at line 219 of file chimera.h.

◆ USE_UART4_RX

#define USE_UART4_RX   TRUE

Definition at line 416 of file chimera.h.

◆ USE_UART4_TX

#define USE_UART4_TX   FALSE

Definition at line 417 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 408 of file chimera.h.

◆ USE_UART7_TX

#define USE_UART7_TX   FALSE

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

◆ WS2812D1_AF

#define WS2812D1_AF   3

Definition at line 592 of file chimera.h.

◆ WS2812D1_CFG_DEF

#define WS2812D1_CFG_DEF
Value:
{ \
.dma_stream = STM32_PWM8_UP_DMA_STREAM, \
.dma_channel = STM32_PWM8_UP_DMA_CHANNEL, \
.dma_priority = STM32_PWM8_UP_DMA_PRIORITY, \
.pwm_channel = 0, \
.pwmp = &PWMD8 \
}
#define STM32_PWM8_UP_DMA_CHANNEL
#define STM32_PWM8_UP_DMA_STREAM
#define STM32_PWM8_UP_DMA_PRIORITY

Definition at line 593 of file chimera.h.

◆ WS2812D1_GPIO

#define WS2812D1_GPIO   GPIOC

For WS2812.

Definition at line 590 of file chimera.h.

◆ WS2812D1_PIN

#define WS2812D1_PIN   GPIO6

Definition at line 591 of file chimera.h.