Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
opa_ftd_1.0.h File Reference

Go to the source code of this file.

Macros

#define BOARD_OPA_FTD
 
#define EXT_CLK   12000000
 
#define AHB_CLK   168000000
 
#define MCU_PWR   GPIOB
 
#define MCU_PWR_PIN   GPIO5
 
#define MCU_PWR_ON   gpio_set
 
#define MCU_PWR_OFF   gpio_clear
 
#define AP_PWR   GPIOB
 
#define AP_PWR_PIN   GPIO0
 
#define AP_PWR_ON   gpio_set
 
#define AP_PWR_OFF   gpio_clear
 
#define MAIN_PWR   GPIOC
 
#define MAIN_PWR_PIN   GPIO12
 
#define MAIN_PWR_ON   gpio_set
 
#define MAIN_PWR_OFF   gpio_clear
 
#define BAL_PWR   GPIOC
 
#define BAL_PWR_PIN   GPIO2
 
#define BAL_PWR_ON   gpio_set
 
#define BAL_PWR_OFF   gpio_clear
 
#define BTN_ESTOP   GPIOB
 
#define BTN_ESTOP_PIN   GPIO12
 
#define BTN_ARMING   GPIOB
 
#define BTN_ARMING_PIN   GPIO14
 
#define BTN_ON   GPIOC
 
#define BTN_ON_PIN   GPIO1
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOA
 
#define LED_1_GPIO_PIN   GPIO8
 
#define LED_1_GPIO_ON   gpio_set
 
#define LED_1_GPIO_OFF   gpio_clear
 
#define LED_1_AFIO_REMAP   ((void)0)
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOC
 
#define LED_2_GPIO_PIN   GPIO5
 
#define LED_2_GPIO_ON   gpio_set
 
#define LED_2_GPIO_OFF   gpio_clear
 
#define LED_2_AFIO_REMAP   ((void)0)
 
#define USE_LED_3   1
 
#define LED_3_GPIO   GPIOB
 
#define LED_3_GPIO_PIN   GPIO13
 
#define LED_3_GPIO_ON   gpio_set
 
#define LED_3_GPIO_OFF   gpio_clear
 
#define LED_3_AFIO_REMAP   ((void)0)
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 
#define UART1_GPIO_AF   GPIO_AF7
 
#define UART1_GPIO_PORT_RX   GPIOA
 
#define UART1_GPIO_RX   GPIO10
 
#define UART2_GPIO_AF   GPIO_AF7
 
#define UART2_GPIO_PORT_RX   GPIOA
 
#define UART2_GPIO_RX   GPIO3
 
#define UART2_GPIO_PORT_TX   GPIOA
 
#define UART2_GPIO_TX   GPIO2
 
#define UART3_GPIO_AF   GPIO_AF7
 
#define UART3_GPIO_PORT_RX   GPIOB
 
#define UART3_GPIO_RX   GPIO11
 
#define UART3_GPIO_PORT_TX   GPIOB
 
#define UART3_GPIO_TX   GPIO10
 
#define UART4_GPIO_AF   GPIO_AF8
 
#define UART4_GPIO_PORT_RX   GPIOC
 
#define UART4_GPIO_RX   GPIO11
 
#define UART4_GPIO_PORT_TX   GPIOC
 
#define UART4_GPIO_TX   GPIO10
 
#define UART5_GPIO_AF   GPIO_AF8
 
#define UART5_GPIO_PORT_RX   GPIOD
 
#define UART5_GPIO_RX   GPIO2
 
#define RADIO_CONTROL_POWER_PORT   GPIOC
 
#define RADIO_CONTROL_POWER_PIN   GPIO13
 
#define RADIO_CONTROL_POWER_ON   gpio_set
 
#define RADIO_CONTROL_POWER_OFF   gpio_clear
 
#define SPEKTRUM_BIND_PIN   GPIO2
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOB
 
#define SPEKTRUM_UART1_RCC   RCC_USART1
 
#define SPEKTRUM_UART1_BANK   GPIOA
 
#define SPEKTRUM_UART1_PIN   GPIO10
 
#define SPEKTRUM_UART1_AF   GPIO_AF7
 
#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ
 
#define SPEKTRUM_UART1_ISR   usart1_isr
 
#define SPEKTRUM_UART1_DEV   USART1
 
#define SPEKTRUM_UART5_RCC   RCC_UART5
 
#define SPEKTRUM_UART5_BANK   GPIOD
 
#define SPEKTRUM_UART5_PIN   GPIO2
 
#define SPEKTRUM_UART5_AF   GPIO_AF8
 
#define SPEKTRUM_UART5_IRQ   NVIC_UART5_IRQ
 
#define SPEKTRUM_UART5_ISR   uart5_isr
 
#define SPEKTRUM_UART5_DEV   UART5
 
#define SPI1_GPIO_AF   GPIO_AF5
 
#define SPI1_GPIO_PORT_MISO   GPIOA
 
#define SPI1_GPIO_MISO   GPIO6
 
#define SPI1_GPIO_PORT_MOSI   GPIOA
 
#define SPI1_GPIO_MOSI   GPIO7
 
#define SPI1_GPIO_PORT_SCK   GPIOA
 
#define SPI1_GPIO_SCK   GPIO5
 
#define SPI1_GPIO_PORT_NSS   GPIOA
 
#define SPI1_GPIO_NSS   GPIO4
 
#define SPI_SELECT_SLAVE0_PORT   GPIOA
 
#define SPI_SELECT_SLAVE0_PIN   GPIO4
 
#define USE_ADC_1   1
 
#define AD1_1_CHANNEL   14
 
#define ADC_1   AD1_1
 
#define ADC_1_GPIO_PORT   GPIOC
 
#define ADC_1_GPIO_PIN   GPIO4
 
#define ADC_CHANNEL_VSUPPLY   ADC_1
 
#define DefaultVoltageOfAdc(adc)   (00.00252*adc)
 
#define PWM_USE_TIM3   1
 
#define PWM_USE_TIM4   1
 
#define PWM_USE_TIM5   1
 
#define USE_PWM1   1
 
#define USE_PWM2   1
 
#define USE_PWM3   1
 
#define USE_PWM4   1
 
#define USE_PWM5   1
 
#define USE_PWM6   1
 
#define USE_PWM7   1
 
#define USE_PWM8   1
 
#define USE_PWM9   1
 
#define USE_PWM10   1
 
#define ACTUATORS_PWM_NB   10
 
#define PWM_SERVO_1   0
 
#define PWM_SERVO_1_TIMER   TIM3
 
#define PWM_SERVO_1_GPIO   GPIOC
 
#define PWM_SERVO_1_PIN   GPIO6
 
#define PWM_SERVO_1_AF   GPIO_AF2
 
#define PWM_SERVO_1_OC   TIM_OC1
 
#define PWM_SERVO_1_OC_BIT   (1<<0)
 
#define PWM_SERVO_2   1
 
#define PWM_SERVO_2_TIMER   TIM3
 
#define PWM_SERVO_2_GPIO   GPIOC
 
#define PWM_SERVO_2_PIN   GPIO7
 
#define PWM_SERVO_2_AF   GPIO_AF2
 
#define PWM_SERVO_2_OC   TIM_OC2
 
#define PWM_SERVO_2_OC_BIT   (1<<1)
 
#define PWM_SERVO_3   2
 
#define PWM_SERVO_3_TIMER   TIM3
 
#define PWM_SERVO_3_GPIO   GPIOC
 
#define PWM_SERVO_3_PIN   GPIO8
 
#define PWM_SERVO_3_AF   GPIO_AF2
 
#define PWM_SERVO_3_OC   TIM_OC3
 
#define PWM_SERVO_3_OC_BIT   (1<<2)
 
#define PWM_SERVO_4   3
 
#define PWM_SERVO_4_TIMER   TIM3
 
#define PWM_SERVO_4_GPIO   GPIOC
 
#define PWM_SERVO_4_PIN   GPIO9
 
#define PWM_SERVO_4_AF   GPIO_AF2
 
#define PWM_SERVO_4_OC   TIM_OC4
 
#define PWM_SERVO_4_OC_BIT   (1<<3)
 
#define PWM_SERVO_5   4
 
#define PWM_SERVO_5_TIMER   TIM5
 
#define PWM_SERVO_5_GPIO   GPIOA
 
#define PWM_SERVO_5_PIN   GPIO0
 
#define PWM_SERVO_5_AF   GPIO_AF2
 
#define PWM_SERVO_5_OC   TIM_OC1
 
#define PWM_SERVO_5_OC_BIT   (1<<0)
 
#define PWM_SERVO_6   5
 
#define PWM_SERVO_6_TIMER   TIM5
 
#define PWM_SERVO_6_GPIO   GPIOA
 
#define PWM_SERVO_6_PIN   GPIO1
 
#define PWM_SERVO_6_AF   GPIO_AF2
 
#define PWM_SERVO_6_OC   TIM_OC2
 
#define PWM_SERVO_6_OC_BIT   (1<<1)
 
#define PWM_SERVO_7   6
 
#define PWM_SERVO_7_TIMER   TIM4
 
#define PWM_SERVO_7_GPIO   GPIOB
 
#define PWM_SERVO_7_PIN   GPIO6
 
#define PWM_SERVO_7_AF   GPIO_AF2
 
#define PWM_SERVO_7_OC   TIM_OC1
 
#define PWM_SERVO_7_OC_BIT   (1<<0)
 
#define PWM_SERVO_8   7
 
#define PWM_SERVO_8_TIMER   TIM4
 
#define PWM_SERVO_8_GPIO   GPIOB
 
#define PWM_SERVO_8_PIN   GPIO7
 
#define PWM_SERVO_8_AF   GPIO_AF2
 
#define PWM_SERVO_8_OC   TIM_OC2
 
#define PWM_SERVO_8_OC_BIT   (1<<1)
 
#define PWM_SERVO_9   8
 
#define PWM_SERVO_9_TIMER   TIM4
 
#define PWM_SERVO_9_GPIO   GPIOB
 
#define PWM_SERVO_9_PIN   GPIO8
 
#define PWM_SERVO_9_AF   GPIO_AF2
 
#define PWM_SERVO_9_OC   TIM_OC3
 
#define PWM_SERVO_9_OC_BIT   (1<<2)
 
#define PWM_SERVO_10   9
 
#define PWM_SERVO_10_TIMER   TIM4
 
#define PWM_SERVO_10_GPIO   GPIOB
 
#define PWM_SERVO_10_PIN   GPIO9
 
#define PWM_SERVO_10_AF   GPIO_AF2
 
#define PWM_SERVO_10_OC   TIM_OC4
 
#define PWM_SERVO_10_OC_BIT   (1<<3)
 
#define PWM_TIM3_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT|PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)
 
#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_5_OC_BIT|PWM_SERVO_6_OC_BIT)
 
#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_7_OC_BIT|PWM_SERVO_8_OC_BIT|PWM_SERVO_9_OC_BIT|PWM_SERVO_10_OC_BIT)
 

Macro Definition Documentation

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

Definition at line 113 of file opa_ftd_1.0.h.

#define ACTUATORS_PWM_NB   10

Definition at line 235 of file opa_ftd_1.0.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 115 of file opa_ftd_1.0.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 114 of file opa_ftd_1.0.h.

#define AD1_1_CHANNEL   14

Definition at line 198 of file opa_ftd_1.0.h.

#define ADC_1   AD1_1

Definition at line 199 of file opa_ftd_1.0.h.

#define ADC_1_GPIO_PIN   GPIO4

Definition at line 201 of file opa_ftd_1.0.h.

#define ADC_1_GPIO_PORT   GPIOC

Definition at line 200 of file opa_ftd_1.0.h.

#define ADC_CHANNEL_VSUPPLY   ADC_1

Definition at line 206 of file opa_ftd_1.0.h.

#define AHB_CLK   168000000

Definition at line 30 of file opa_ftd_1.0.h.

#define AP_PWR   GPIOB

Definition at line 43 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define AP_PWR_OFF   gpio_clear

Definition at line 46 of file opa_ftd_1.0.h.

Referenced by opa_controller_periodic().

#define AP_PWR_ON   gpio_set

Definition at line 45 of file opa_ftd_1.0.h.

Referenced by opa_controller_init().

#define AP_PWR_PIN   GPIO0

Definition at line 44 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BAL_PWR   GPIOC

Definition at line 55 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BAL_PWR_OFF   gpio_clear

Definition at line 58 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BAL_PWR_ON   gpio_set

Definition at line 57 of file opa_ftd_1.0.h.

Referenced by opa_controller_periodic().

#define BAL_PWR_PIN   GPIO2

Definition at line 56 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BOARD_OPA_FTD

Definition at line 26 of file opa_ftd_1.0.h.

#define BTN_ARMING   GPIOB

Definition at line 69 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BTN_ARMING_PIN   GPIO14

Definition at line 70 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BTN_ESTOP   GPIOB

Definition at line 65 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BTN_ESTOP_PIN   GPIO12

Definition at line 66 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define BTN_ON   GPIOC

Definition at line 73 of file opa_ftd_1.0.h.

Referenced by mcu_init(), opa_controller_init(), and opa_controller_periodic().

#define BTN_ON_PIN   GPIO1

Definition at line 74 of file opa_ftd_1.0.h.

Referenced by mcu_init(), opa_controller_init(), and opa_controller_periodic().

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

Definition at line 112 of file opa_ftd_1.0.h.

#define DefaultVoltageOfAdc (   adc)    (00.00252*adc)

Definition at line 214 of file opa_ftd_1.0.h.

#define EXT_CLK   12000000

Definition at line 29 of file opa_ftd_1.0.h.

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 88 of file opa_ftd_1.0.h.

#define LED_1_GPIO   GPIOA

Definition at line 84 of file opa_ftd_1.0.h.

#define LED_1_GPIO_OFF   gpio_clear

Definition at line 87 of file opa_ftd_1.0.h.

#define LED_1_GPIO_ON   gpio_set

Definition at line 86 of file opa_ftd_1.0.h.

#define LED_1_GPIO_PIN   GPIO8

Definition at line 85 of file opa_ftd_1.0.h.

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 98 of file opa_ftd_1.0.h.

#define LED_2_GPIO   GPIOC

Definition at line 94 of file opa_ftd_1.0.h.

#define LED_2_GPIO_OFF   gpio_clear

Definition at line 97 of file opa_ftd_1.0.h.

#define LED_2_GPIO_ON   gpio_set

Definition at line 96 of file opa_ftd_1.0.h.

#define LED_2_GPIO_PIN   GPIO5

Definition at line 95 of file opa_ftd_1.0.h.

#define LED_3_AFIO_REMAP   ((void)0)

Definition at line 108 of file opa_ftd_1.0.h.

#define LED_3_GPIO   GPIOB

Definition at line 104 of file opa_ftd_1.0.h.

#define LED_3_GPIO_OFF   gpio_clear

Definition at line 107 of file opa_ftd_1.0.h.

#define LED_3_GPIO_ON   gpio_set

Definition at line 106 of file opa_ftd_1.0.h.

#define LED_3_GPIO_PIN   GPIO13

Definition at line 105 of file opa_ftd_1.0.h.

#define MAIN_PWR   GPIOC

Definition at line 49 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define MAIN_PWR_OFF   gpio_clear

Definition at line 52 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define MAIN_PWR_ON   gpio_set

Definition at line 51 of file opa_ftd_1.0.h.

Referenced by opa_controller_periodic().

#define MAIN_PWR_PIN   GPIO12

Definition at line 50 of file opa_ftd_1.0.h.

Referenced by opa_controller_init(), and opa_controller_periodic().

#define MCU_PWR   GPIOB

Definition at line 37 of file opa_ftd_1.0.h.

Referenced by mcu_init(), and opa_controller_periodic().

#define MCU_PWR_OFF   gpio_clear

Definition at line 40 of file opa_ftd_1.0.h.

Referenced by mcu_init(), and opa_controller_periodic().

#define MCU_PWR_ON   gpio_set

Definition at line 39 of file opa_ftd_1.0.h.

Referenced by mcu_init().

#define MCU_PWR_PIN   GPIO5

Definition at line 38 of file opa_ftd_1.0.h.

Referenced by mcu_init(), and opa_controller_periodic().

#define PWM_SERVO_1   0

Definition at line 240 of file opa_ftd_1.0.h.

#define PWM_SERVO_10   9

Definition at line 348 of file opa_ftd_1.0.h.

Referenced by actuators_pwm_commit().

#define PWM_SERVO_10_AF   GPIO_AF2

Definition at line 352 of file opa_ftd_1.0.h.

Referenced by actuators_pwm_arch_init().

#define PWM_SERVO_10_GPIO   GPIOB

Definition at line 350 of file opa_ftd_1.0.h.

Referenced by actuators_pwm_arch_init().

#define PWM_SERVO_10_OC   TIM_OC4

Definition at line 353 of file opa_ftd_1.0.h.

Referenced by actuators_pwm_commit().

#define PWM_SERVO_10_OC_BIT   (1<<3)

Definition at line 354 of file opa_ftd_1.0.h.

#define PWM_SERVO_10_PIN   GPIO9

Definition at line 351 of file opa_ftd_1.0.h.

Referenced by actuators_pwm_arch_init().

#define PWM_SERVO_10_TIMER   TIM4

Definition at line 349 of file opa_ftd_1.0.h.

Referenced by actuators_pwm_commit().

#define PWM_SERVO_1_AF   GPIO_AF2

Definition at line 244 of file opa_ftd_1.0.h.

#define PWM_SERVO_1_GPIO   GPIOC

Definition at line 242 of file opa_ftd_1.0.h.

#define PWM_SERVO_1_OC   TIM_OC1

Definition at line 245 of file opa_ftd_1.0.h.

#define PWM_SERVO_1_OC_BIT   (1<<0)

Definition at line 246 of file opa_ftd_1.0.h.

#define PWM_SERVO_1_PIN   GPIO6

Definition at line 243 of file opa_ftd_1.0.h.

#define PWM_SERVO_1_TIMER   TIM3

Definition at line 241 of file opa_ftd_1.0.h.

#define PWM_SERVO_2   1

Definition at line 252 of file opa_ftd_1.0.h.

#define PWM_SERVO_2_AF   GPIO_AF2

Definition at line 256 of file opa_ftd_1.0.h.

#define PWM_SERVO_2_GPIO   GPIOC

Definition at line 254 of file opa_ftd_1.0.h.

#define PWM_SERVO_2_OC   TIM_OC2

Definition at line 257 of file opa_ftd_1.0.h.

#define PWM_SERVO_2_OC_BIT   (1<<1)

Definition at line 258 of file opa_ftd_1.0.h.

#define PWM_SERVO_2_PIN   GPIO7

Definition at line 255 of file opa_ftd_1.0.h.

#define PWM_SERVO_2_TIMER   TIM3

Definition at line 253 of file opa_ftd_1.0.h.

#define PWM_SERVO_3   2

Definition at line 264 of file opa_ftd_1.0.h.

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 268 of file opa_ftd_1.0.h.

#define PWM_SERVO_3_GPIO   GPIOC

Definition at line 266 of file opa_ftd_1.0.h.

#define PWM_SERVO_3_OC   TIM_OC3

Definition at line 269 of file opa_ftd_1.0.h.

#define PWM_SERVO_3_OC_BIT   (1<<2)

Definition at line 270 of file opa_ftd_1.0.h.

#define PWM_SERVO_3_PIN   GPIO8

Definition at line 267 of file opa_ftd_1.0.h.

#define PWM_SERVO_3_TIMER   TIM3

Definition at line 265 of file opa_ftd_1.0.h.

#define PWM_SERVO_4   3

Definition at line 276 of file opa_ftd_1.0.h.

#define PWM_SERVO_4_AF   GPIO_AF2

Definition at line 280 of file opa_ftd_1.0.h.

#define PWM_SERVO_4_GPIO   GPIOC

Definition at line 278 of file opa_ftd_1.0.h.

#define PWM_SERVO_4_OC   TIM_OC4

Definition at line 281 of file opa_ftd_1.0.h.

#define PWM_SERVO_4_OC_BIT   (1<<3)

Definition at line 282 of file opa_ftd_1.0.h.

#define PWM_SERVO_4_PIN   GPIO9

Definition at line 279 of file opa_ftd_1.0.h.

#define PWM_SERVO_4_TIMER   TIM3

Definition at line 277 of file opa_ftd_1.0.h.

#define PWM_SERVO_5   4

Definition at line 288 of file opa_ftd_1.0.h.

#define PWM_SERVO_5_AF   GPIO_AF2

Definition at line 292 of file opa_ftd_1.0.h.

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 290 of file opa_ftd_1.0.h.

#define PWM_SERVO_5_OC   TIM_OC1

Definition at line 293 of file opa_ftd_1.0.h.

#define PWM_SERVO_5_OC_BIT   (1<<0)

Definition at line 294 of file opa_ftd_1.0.h.

#define PWM_SERVO_5_PIN   GPIO0

Definition at line 291 of file opa_ftd_1.0.h.

#define PWM_SERVO_5_TIMER   TIM5

Definition at line 289 of file opa_ftd_1.0.h.

#define PWM_SERVO_6   5

Definition at line 300 of file opa_ftd_1.0.h.

#define PWM_SERVO_6_AF   GPIO_AF2

Definition at line 304 of file opa_ftd_1.0.h.

#define PWM_SERVO_6_GPIO   GPIOA

Definition at line 302 of file opa_ftd_1.0.h.

#define PWM_SERVO_6_OC   TIM_OC2

Definition at line 305 of file opa_ftd_1.0.h.

#define PWM_SERVO_6_OC_BIT   (1<<1)

Definition at line 306 of file opa_ftd_1.0.h.

#define PWM_SERVO_6_PIN   GPIO1

Definition at line 303 of file opa_ftd_1.0.h.

#define PWM_SERVO_6_TIMER   TIM5

Definition at line 301 of file opa_ftd_1.0.h.

#define PWM_SERVO_7   6

Definition at line 312 of file opa_ftd_1.0.h.

#define PWM_SERVO_7_AF   GPIO_AF2

Definition at line 316 of file opa_ftd_1.0.h.

#define PWM_SERVO_7_GPIO   GPIOB

Definition at line 314 of file opa_ftd_1.0.h.

#define PWM_SERVO_7_OC   TIM_OC1

Definition at line 317 of file opa_ftd_1.0.h.

#define PWM_SERVO_7_OC_BIT   (1<<0)

Definition at line 318 of file opa_ftd_1.0.h.

#define PWM_SERVO_7_PIN   GPIO6

Definition at line 315 of file opa_ftd_1.0.h.

#define PWM_SERVO_7_TIMER   TIM4

Definition at line 313 of file opa_ftd_1.0.h.

#define PWM_SERVO_8   7

Definition at line 324 of file opa_ftd_1.0.h.

#define PWM_SERVO_8_AF   GPIO_AF2

Definition at line 328 of file opa_ftd_1.0.h.

#define PWM_SERVO_8_GPIO   GPIOB

Definition at line 326 of file opa_ftd_1.0.h.

#define PWM_SERVO_8_OC   TIM_OC2

Definition at line 329 of file opa_ftd_1.0.h.

#define PWM_SERVO_8_OC_BIT   (1<<1)

Definition at line 330 of file opa_ftd_1.0.h.

#define PWM_SERVO_8_PIN   GPIO7

Definition at line 327 of file opa_ftd_1.0.h.

#define PWM_SERVO_8_TIMER   TIM4

Definition at line 325 of file opa_ftd_1.0.h.

#define PWM_SERVO_9   8

Definition at line 336 of file opa_ftd_1.0.h.

#define PWM_SERVO_9_AF   GPIO_AF2

Definition at line 340 of file opa_ftd_1.0.h.

#define PWM_SERVO_9_GPIO   GPIOB

Definition at line 338 of file opa_ftd_1.0.h.

#define PWM_SERVO_9_OC   TIM_OC3

Definition at line 341 of file opa_ftd_1.0.h.

#define PWM_SERVO_9_OC_BIT   (1<<2)

Definition at line 342 of file opa_ftd_1.0.h.

#define PWM_SERVO_9_PIN   GPIO8

Definition at line 339 of file opa_ftd_1.0.h.

#define PWM_SERVO_9_TIMER   TIM4

Definition at line 337 of file opa_ftd_1.0.h.

Definition at line 360 of file opa_ftd_1.0.h.

Definition at line 364 of file opa_ftd_1.0.h.

#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_5_OC_BIT|PWM_SERVO_6_OC_BIT)

Definition at line 362 of file opa_ftd_1.0.h.

#define PWM_USE_TIM3   1

Definition at line 221 of file opa_ftd_1.0.h.

#define PWM_USE_TIM4   1

Definition at line 222 of file opa_ftd_1.0.h.

#define PWM_USE_TIM5   1

Definition at line 223 of file opa_ftd_1.0.h.

#define RADIO_CONTROL_POWER_OFF   gpio_clear
#define RADIO_CONTROL_POWER_ON   gpio_set

Definition at line 151 of file opa_ftd_1.0.h.

Referenced by mcu_init(), received_spektrum_soft_bind(), and send_spektrum_bind().

#define RADIO_CONTROL_POWER_PIN   GPIO13
#define RADIO_CONTROL_POWER_PORT   GPIOC
#define SPEKTRUM_BIND_PIN   GPIO2

Definition at line 155 of file opa_ftd_1.0.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOB

Definition at line 156 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_AF   GPIO_AF7

Definition at line 161 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_BANK   GPIOA

Definition at line 159 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_DEV   USART1

Definition at line 164 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ

Definition at line 162 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_ISR   usart1_isr

Definition at line 163 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_PIN   GPIO10

Definition at line 160 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART1_RCC   RCC_USART1

Definition at line 158 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_AF   GPIO_AF8

Definition at line 169 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_BANK   GPIOD

Definition at line 167 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_DEV   UART5

Definition at line 172 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_IRQ   NVIC_UART5_IRQ

Definition at line 170 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_ISR   uart5_isr

Definition at line 171 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_PIN   GPIO2

Definition at line 168 of file opa_ftd_1.0.h.

#define SPEKTRUM_UART5_RCC   RCC_UART5

Definition at line 166 of file opa_ftd_1.0.h.

#define SPI1_GPIO_AF   GPIO_AF5

Definition at line 175 of file opa_ftd_1.0.h.

#define SPI1_GPIO_MISO   GPIO6

Definition at line 177 of file opa_ftd_1.0.h.

#define SPI1_GPIO_MOSI   GPIO7

Definition at line 179 of file opa_ftd_1.0.h.

#define SPI1_GPIO_NSS   GPIO4

Definition at line 183 of file opa_ftd_1.0.h.

#define SPI1_GPIO_PORT_MISO   GPIOA

Definition at line 176 of file opa_ftd_1.0.h.

#define SPI1_GPIO_PORT_MOSI   GPIOA

Definition at line 178 of file opa_ftd_1.0.h.

#define SPI1_GPIO_PORT_NSS   GPIOA

Definition at line 182 of file opa_ftd_1.0.h.

#define SPI1_GPIO_PORT_SCK   GPIOA

Definition at line 180 of file opa_ftd_1.0.h.

#define SPI1_GPIO_SCK   GPIO5

Definition at line 181 of file opa_ftd_1.0.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO4

Definition at line 186 of file opa_ftd_1.0.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOA

Definition at line 185 of file opa_ftd_1.0.h.

#define UART1_GPIO_AF   GPIO_AF7

Definition at line 119 of file opa_ftd_1.0.h.

#define UART1_GPIO_PORT_RX   GPIOA

Definition at line 120 of file opa_ftd_1.0.h.

#define UART1_GPIO_RX   GPIO10

Definition at line 121 of file opa_ftd_1.0.h.

#define UART2_GPIO_AF   GPIO_AF7

Definition at line 123 of file opa_ftd_1.0.h.

#define UART2_GPIO_PORT_RX   GPIOA

Definition at line 124 of file opa_ftd_1.0.h.

#define UART2_GPIO_PORT_TX   GPIOA

Definition at line 126 of file opa_ftd_1.0.h.

#define UART2_GPIO_RX   GPIO3

Definition at line 125 of file opa_ftd_1.0.h.

#define UART2_GPIO_TX   GPIO2

Definition at line 127 of file opa_ftd_1.0.h.

#define UART3_GPIO_AF   GPIO_AF7

Definition at line 129 of file opa_ftd_1.0.h.

#define UART3_GPIO_PORT_RX   GPIOB

Definition at line 130 of file opa_ftd_1.0.h.

#define UART3_GPIO_PORT_TX   GPIOB

Definition at line 132 of file opa_ftd_1.0.h.

#define UART3_GPIO_RX   GPIO11

Definition at line 131 of file opa_ftd_1.0.h.

#define UART3_GPIO_TX   GPIO10

Definition at line 133 of file opa_ftd_1.0.h.

#define UART4_GPIO_AF   GPIO_AF8

Definition at line 135 of file opa_ftd_1.0.h.

#define UART4_GPIO_PORT_RX   GPIOC

Definition at line 136 of file opa_ftd_1.0.h.

#define UART4_GPIO_PORT_TX   GPIOC

Definition at line 138 of file opa_ftd_1.0.h.

#define UART4_GPIO_RX   GPIO11

Definition at line 137 of file opa_ftd_1.0.h.

#define UART4_GPIO_TX   GPIO10

Definition at line 139 of file opa_ftd_1.0.h.

#define UART5_GPIO_AF   GPIO_AF8

Definition at line 141 of file opa_ftd_1.0.h.

#define UART5_GPIO_PORT_RX   GPIOD

Definition at line 142 of file opa_ftd_1.0.h.

#define UART5_GPIO_RX   GPIO2

Definition at line 143 of file opa_ftd_1.0.h.

#define USE_ADC_1   1

Definition at line 195 of file opa_ftd_1.0.h.

#define USE_LED_1   1

Definition at line 82 of file opa_ftd_1.0.h.

#define USE_LED_2   1

Definition at line 92 of file opa_ftd_1.0.h.

#define USE_LED_3   1

Definition at line 102 of file opa_ftd_1.0.h.

#define USE_PWM1   1

Definition at line 225 of file opa_ftd_1.0.h.

#define USE_PWM10   1

Definition at line 234 of file opa_ftd_1.0.h.

#define USE_PWM2   1

Definition at line 226 of file opa_ftd_1.0.h.

#define USE_PWM3   1

Definition at line 227 of file opa_ftd_1.0.h.

#define USE_PWM4   1

Definition at line 228 of file opa_ftd_1.0.h.

#define USE_PWM5   1

Definition at line 229 of file opa_ftd_1.0.h.

#define USE_PWM6   1

Definition at line 230 of file opa_ftd_1.0.h.

#define USE_PWM7   1

Definition at line 231 of file opa_ftd_1.0.h.

#define USE_PWM8   1

Definition at line 232 of file opa_ftd_1.0.h.

#define USE_PWM9   1

Definition at line 233 of file opa_ftd_1.0.h.