Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stm32f4_discovery.h File Reference

Go to the source code of this file.

Macros

#define BOARD_STM32F4_DISCOVERY
 
#define EXT_CLK   8000000
 
#define AHB_CLK   168000000
 
#define USE_LED_3   1
 
#define LED_3_GPIO   GPIOD
 
#define LED_3_GPIO_PIN   GPIO13
 
#define LED_3_AFIO_REMAP   ((void)0)
 
#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   GPIO12
 
#define LED_4_AFIO_REMAP   ((void)0)
 
#define LED_4_GPIO_ON   gpio_set
 
#define LED_4_GPIO_OFF   gpio_clear
 
#define USE_LED_5   1
 
#define LED_5_GPIO   GPIOD
 
#define LED_5_GPIO_PIN   GPIO14
 
#define LED_5_AFIO_REMAP   ((void)0)
 
#define LED_5_GPIO_ON   gpio_set
 
#define LED_5_GPIO_OFF   gpio_clear
 
#define USE_LED_6   1
 
#define LED_6_GPIO   GPIOD
 
#define LED_6_GPIO_PIN   GPIO15
 
#define LED_6_AFIO_REMAP   ((void)0)
 
#define LED_6_GPIO_ON   gpio_set
 
#define LED_6_GPIO_OFF   gpio_clear
 
#define UART1_GPIO_AF   GPIO_AF7
 
#define UART1_GPIO_PORT_TX   GPIOB
 
#define UART1_GPIO_TX   GPIO6
 
#define UART1_GPIO_PORT_RX   GPIOB
 
#define UART1_GPIO_RX   GPIO7
 
#define UART2_GPIO_AF   GPIO_AF7
 
#define UART2_GPIO_PORT_TX   GPIOD
 
#define UART2_GPIO_TX   GPIO5
 
#define UART2_GPIO_PORT_RX   GPIOD
 
#define UART2_GPIO_RX   GPIO6
 
#define UART3_GPIO_AF   GPIO_AF7
 
#define UART3_GPIO_PORT_TX   GPIOD
 
#define UART3_GPIO_TX   GPIO8
 
#define UART3_GPIO_PORT_RX   GPIOD
 
#define UART3_GPIO_RX   GPIO9
 
#define UART4_GPIO_AF   GPIO_AF8
 
#define UART4_GPIO_PORT_TX   GPIOC
 
#define UART4_GPIO_TX   GPIO10
 
#define UART4_GPIO_PORT_RX   GPIOC
 
#define UART4_GPIO_RX   GPIO11
 
#define UART5_GPIO_AF   GPIO_AF8
 
#define UART5_GPIO_PORT_TX   GPIOC
 
#define UART5_GPIO_TX   GPIO12
 
#define UART5_GPIO_PORT_RX   GPIOD
 
#define UART5_GPIO_RX   GPIO2
 
#define UART6_GPIO_AF   GPIO_AF8
 
#define UART6_GPIO_PORT_TX   GPIOC
 
#define UART6_GPIO_TX   GPIO6
 
#define UART6_GPIO_PORT_RX   GPIOC
 
#define UART6_GPIO_RX   GPIO7
 
#define SPI1_GPIO_AF   GPIO_AF5
 
#define SPI1_GPIO_PORT_SCK   GPIOB
 
#define SPI1_GPIO_SCK   GPIO3
 
#define SPI1_GPIO_PORT_MISO   GPIOB
 
#define SPI1_GPIO_MISO   GPIO4
 
#define SPI1_GPIO_PORT_MOSI   GPIOB
 
#define SPI1_GPIO_MOSI   GPIO5
 
#define SPI2_GPIO_AF   GPIO_AF5
 
#define SPI2_GPIO_PORT_SCK   GPIOB
 
#define SPI2_GPIO_SCK   GPIO13
 
#define SPI2_GPIO_PORT_MISO   GPIOB
 
#define SPI2_GPIO_MISO   GPIO14
 
#define SPI2_GPIO_PORT_MOSI   GPIOB
 
#define SPI2_GPIO_MOSI   GPIO15
 
#define SPI3_GPIO_AF   GPIO_AF6
 
#define SPI3_GPIO_PORT_SCK   GPIOC
 
#define SPI3_GPIO_SCK   GPIO10
 
#define SPI3_GPIO_PORT_MISO   GPIOC
 
#define SPI3_GPIO_MISO   GPIO11
 
#define SPI3_GPIO_PORT_MOSI   GPIOC
 
#define SPI3_GPIO_MOSI   GPIO12
 
#define SPI_SELECT_SLAVE0_PORT   GPIOE
 
#define SPI_SELECT_SLAVE0_PIN   GPIO2
 
#define SPI_SELECT_SLAVE1_PORT   GPIOE
 
#define SPI_SELECT_SLAVE1_PIN   GPIO7
 
#define SPI_SELECT_SLAVE2_PORT   GPIOE
 
#define SPI_SELECT_SLAVE2_PIN   GPIO3
 
#define I2C1_GPIO_PORT   GPIOB
 
#define I2C1_GPIO_SCL   GPIO8
 
#define I2C1_GPIO_SDA   GPIO9
 
#define I2C2_GPIO_PORT   GPIOB
 
#define I2C2_GPIO_SCL   GPIO10
 
#define I2C2_GPIO_SDA   GPIO11
 
#define USE_AD_TIM2   1
 
#define USE_ADC_1   1
 
#define USE_ADC_2   1
 
#define USE_ADC_3   1
 
#define USE_ADC_4   1
 
#define USE_ADC_5   1
 
#define USE_ADC_6   1
 
#define ADC_CHANNEL_VSUPPLY   ADC_4
 
#define DefaultVoltageOfAdc(adc)   (0.00485*adc)
 
#define AD1_1_CHANNEL   9
 
#define ADC_1   AD1_1
 
#define ADC_1_GPIO_PORT   GPIOB
 
#define ADC_1_GPIO_PIN   GPIO1
 
#define AD1_2_CHANNEL   15
 
#define ADC_2   AD1_2
 
#define ADC_2_GPIO_PORT   GPIOC
 
#define ADC_2_GPIO_PIN   GPIO5
 
#define AD2_1_CHANNEL   14
 
#define ADC_3   AD2_1
 
#define ADC_3_GPIO_PORT   GPIOC
 
#define ADC_3_GPIO_PIN   GPIO4
 
#define AD2_2_CHANNEL   4
 
#define ADC_4   AD2_2
 
#define ADC_4_GPIO_PORT   GPIOA
 
#define ADC_4_GPIO_PIN   GPIO4
 
#define AD3_1_CHANNEL   11
 
#define ADC_5   AD3_1
 
#define ADC_5_GPIO_PORT   GPIOC
 
#define ADC_5_GPIO_PIN   GPIO1
 
#define AD3_2_CHANNEL   12
 
#define ADC_6   AD3_2
 
#define ADC_6_GPIO_PORT   GPIOC
 
#define ADC_6_GPIO_PIN   GPIO2
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 
#define PWM_USE_TIM1   1
 
#define PWM_USE_TIM5   1
 
#define PWM_USE_TIM9   1
 
#define PWM_USE_TIM12   1
 
#define USE_PWM0   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   0
 
#define USE_PWM11   0
 
#define ACTUATORS_PWM_NB   12
 
#define PWM_SERVO_0   0
 
#define PWM_SERVO_0_TIMER   TIM1
 
#define PWM_SERVO_0_GPIO   GPIOE
 
#define PWM_SERVO_0_PIN   GPIO9
 
#define PWM_SERVO_0_AF   GPIO_AF1
 
#define PWM_SERVO_0_OC   TIM_OC1
 
#define PWM_SERVO_0_OC_BIT   (1<<0)
 
#define PWM_SERVO_1   1
 
#define PWM_SERVO_1_TIMER   TIM1
 
#define PWM_SERVO_1_GPIO   GPIOE
 
#define PWM_SERVO_1_PIN   GPIO11
 
#define PWM_SERVO_1_AF   GPIO_AF1
 
#define PWM_SERVO_1_OC   TIM_OC2
 
#define PWM_SERVO_1_OC_BIT   (1<<1)
 
#define PWM_SERVO_2   2
 
#define PWM_SERVO_2_TIMER   TIM1
 
#define PWM_SERVO_2_GPIO   GPIOE
 
#define PWM_SERVO_2_PIN   GPIO13
 
#define PWM_SERVO_2_AF   GPIO_AF1
 
#define PWM_SERVO_2_OC   TIM_OC3
 
#define PWM_SERVO_2_OC_BIT   (1<<2)
 
#define PWM_SERVO_3   3
 
#define PWM_SERVO_3_TIMER   TIM1
 
#define PWM_SERVO_3_GPIO   GPIOE
 
#define PWM_SERVO_3_PIN   GPIO14
 
#define PWM_SERVO_3_AF   GPIO_AF1
 
#define PWM_SERVO_3_OC   TIM_OC4
 
#define PWM_SERVO_3_OC_BIT   (1<<3)
 
#define PWM_SERVO_4   4
 
#define PWM_SERVO_4_TIMER   TIM9
 
#define PWM_SERVO_4_GPIO   GPIOE
 
#define PWM_SERVO_4_PIN   GPIO5
 
#define PWM_SERVO_4_AF   GPIO_AF3
 
#define PWM_SERVO_4_OC   TIM_OC1
 
#define PWM_SERVO_4_OC_BIT   (1<<0)
 
#define PWM_SERVO_5   5
 
#define PWM_SERVO_5_TIMER   TIM9
 
#define PWM_SERVO_5_GPIO   GPIOE
 
#define PWM_SERVO_5_PIN   GPIO6
 
#define PWM_SERVO_5_AF   GPIO_AF3
 
#define PWM_SERVO_5_OC   TIM_OC2
 
#define PWM_SERVO_5_OC_BIT   (1<<1)
 
#define PWM_SERVO_6   6
 
#define PWM_SERVO_6_TIMER   TIM5
 
#define PWM_SERVO_6_GPIO   GPIOA
 
#define PWM_SERVO_6_PIN   GPIO3
 
#define PWM_SERVO_6_AF   GPIO_AF2
 
#define PWM_SERVO_6_OC   TIM_OC4
 
#define PWM_SERVO_6_OC_BIT   (1<<3)
 
#define PWM_SERVO_7   7
 
#define PWM_SERVO_7_TIMER   TIM5
 
#define PWM_SERVO_7_GPIO   GPIOA
 
#define PWM_SERVO_7_PIN   GPIO2
 
#define PWM_SERVO_7_AF   GPIO_AF2
 
#define PWM_SERVO_7_OC   TIM_OC3
 
#define PWM_SERVO_7_OC_BIT   (1<<2)
 
#define PWM_SERVO_8   8
 
#define PWM_SERVO_8_TIMER   TIM5
 
#define PWM_SERVO_8_GPIO   GPIOA
 
#define PWM_SERVO_8_PIN   GPIO1
 
#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   9
 
#define PWM_SERVO_9_TIMER   TIM5
 
#define PWM_SERVO_9_GPIO   GPIOA
 
#define PWM_SERVO_9_PIN   GPIO0
 
#define PWM_SERVO_9_AF   GPIO_AF2
 
#define PWM_SERVO_9_OC   TIM_OC1
 
#define PWM_SERVO_9_OC_BIT   (1<<0)
 
#define PWM_SERVO_10_OC_BIT   0
 
#define PWM_SERVO_11_OC_BIT   0
 
#define PWM_TIM1_CHAN_MASK   (PWM_SERVO_0_OC_BIT|PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT|PWM_SERVO_3_OC_BIT)
 
#define PWM_TIM9_CHAN_MASK   (PWM_SERVO_4_OC_BIT|PWM_SERVO_5_OC_BIT)
 
#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_6_OC_BIT|PWM_SERVO_7_OC_BIT|PWM_SERVO_8_OC_BIT|PWM_SERVO_9_OC_BIT)
 
#define PWM_TIM12_CHAN_MASK   (PWM_SERVO_10_OC_BIT|PWM_SERVO_11_OC_BIT)
 
#define USE_PPM_TIM8   1
 
#define PPM_CHANNEL   TIM_IC4
 
#define PPM_TIMER_INPUT   TIM_IC_IN_TI4
 
#define PPM_IRQ   NVIC_TIM8_CC_IRQ
 
#define PPM_IRQ2   NVIC_TIM8_UP_TIM13_IRQ
 
#define PPM_CC_IE   TIM_DIER_CC4IE
 
#define PPM_CC_IF   TIM_SR_CC4IF
 
#define PPM_GPIO_PORT   GPIOC
 
#define PPM_GPIO_PIN   GPIO9
 
#define PPM_GPIO_AF   GPIO_AF3
 
#define SPEKTRUM_BIND_PIN   GPIO8
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOA
 
#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
 

Macro Definition Documentation

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

Definition at line 357 of file stm32f4_discovery.h.

#define ACTUATORS_PWM_NB   12

Definition at line 390 of file stm32f4_discovery.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 359 of file stm32f4_discovery.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 358 of file stm32f4_discovery.h.

#define AD1_1_CHANNEL   9

Definition at line 306 of file stm32f4_discovery.h.

#define AD1_2_CHANNEL   15

Definition at line 314 of file stm32f4_discovery.h.

#define AD2_1_CHANNEL   14

Definition at line 322 of file stm32f4_discovery.h.

Referenced by adc_init().

#define AD2_2_CHANNEL   4

Definition at line 330 of file stm32f4_discovery.h.

Referenced by adc_init().

#define AD3_1_CHANNEL   11

Definition at line 337 of file stm32f4_discovery.h.

Referenced by adc_init().

#define AD3_2_CHANNEL   12

Definition at line 344 of file stm32f4_discovery.h.

Referenced by adc_init().

#define ADC_1   AD1_1

Definition at line 307 of file stm32f4_discovery.h.

#define ADC_1_GPIO_PIN   GPIO1

Definition at line 309 of file stm32f4_discovery.h.

#define ADC_1_GPIO_PORT   GPIOB

Definition at line 308 of file stm32f4_discovery.h.

#define ADC_2   AD1_2

Definition at line 315 of file stm32f4_discovery.h.

#define ADC_2_GPIO_PIN   GPIO5

Definition at line 317 of file stm32f4_discovery.h.

#define ADC_2_GPIO_PORT   GPIOC

Definition at line 316 of file stm32f4_discovery.h.

#define ADC_3   AD2_1

Definition at line 323 of file stm32f4_discovery.h.

#define ADC_3_GPIO_PIN   GPIO4

Definition at line 325 of file stm32f4_discovery.h.

#define ADC_3_GPIO_PORT   GPIOC

Definition at line 324 of file stm32f4_discovery.h.

#define ADC_4   AD2_2

Definition at line 331 of file stm32f4_discovery.h.

#define ADC_4_GPIO_PIN   GPIO4

Definition at line 333 of file stm32f4_discovery.h.

#define ADC_4_GPIO_PORT   GPIOA

Definition at line 332 of file stm32f4_discovery.h.

#define ADC_5   AD3_1

Definition at line 338 of file stm32f4_discovery.h.

#define ADC_5_GPIO_PIN   GPIO1

Definition at line 340 of file stm32f4_discovery.h.

#define ADC_5_GPIO_PORT   GPIOC

Definition at line 339 of file stm32f4_discovery.h.

#define ADC_6   AD3_2

Definition at line 345 of file stm32f4_discovery.h.

#define ADC_6_GPIO_PIN   GPIO2

Definition at line 347 of file stm32f4_discovery.h.

Referenced by adc_init().

#define ADC_6_GPIO_PORT   GPIOC

Definition at line 346 of file stm32f4_discovery.h.

Referenced by adc_init().

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 291 of file stm32f4_discovery.h.

#define AHB_CLK   168000000

Definition at line 101 of file stm32f4_discovery.h.

#define BOARD_STM32F4_DISCOVERY

Definition at line 97 of file stm32f4_discovery.h.

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

Definition at line 356 of file stm32f4_discovery.h.

#define DefaultVoltageOfAdc (   adc)    (0.00485*adc)

Definition at line 297 of file stm32f4_discovery.h.

#define EXT_CLK   8000000

Definition at line 100 of file stm32f4_discovery.h.

#define I2C1_GPIO_PORT   GPIOB

Definition at line 260 of file stm32f4_discovery.h.

#define I2C1_GPIO_SCL   GPIO8

Definition at line 261 of file stm32f4_discovery.h.

#define I2C1_GPIO_SDA   GPIO9

Definition at line 262 of file stm32f4_discovery.h.

#define I2C2_GPIO_PORT   GPIOB

Definition at line 264 of file stm32f4_discovery.h.

#define I2C2_GPIO_SCL   GPIO10

Definition at line 265 of file stm32f4_discovery.h.

#define I2C2_GPIO_SDA   GPIO11

Definition at line 266 of file stm32f4_discovery.h.

#define LED_3_AFIO_REMAP   ((void)0)

Definition at line 113 of file stm32f4_discovery.h.

#define LED_3_GPIO   GPIOD

Definition at line 111 of file stm32f4_discovery.h.

#define LED_3_GPIO_OFF   gpio_clear

Definition at line 115 of file stm32f4_discovery.h.

#define LED_3_GPIO_ON   gpio_set

Definition at line 114 of file stm32f4_discovery.h.

#define LED_3_GPIO_PIN   GPIO13

Definition at line 112 of file stm32f4_discovery.h.

#define LED_4_AFIO_REMAP   ((void)0)

Definition at line 123 of file stm32f4_discovery.h.

#define LED_4_GPIO   GPIOD

Definition at line 121 of file stm32f4_discovery.h.

#define LED_4_GPIO_OFF   gpio_clear

Definition at line 125 of file stm32f4_discovery.h.

#define LED_4_GPIO_ON   gpio_set

Definition at line 124 of file stm32f4_discovery.h.

#define LED_4_GPIO_PIN   GPIO12

Definition at line 122 of file stm32f4_discovery.h.

#define LED_5_AFIO_REMAP   ((void)0)

Definition at line 133 of file stm32f4_discovery.h.

#define LED_5_GPIO   GPIOD

Definition at line 131 of file stm32f4_discovery.h.

#define LED_5_GPIO_OFF   gpio_clear

Definition at line 135 of file stm32f4_discovery.h.

#define LED_5_GPIO_ON   gpio_set

Definition at line 134 of file stm32f4_discovery.h.

#define LED_5_GPIO_PIN   GPIO14

Definition at line 132 of file stm32f4_discovery.h.

#define LED_6_AFIO_REMAP   ((void)0)

Definition at line 143 of file stm32f4_discovery.h.

#define LED_6_GPIO   GPIOD

Definition at line 141 of file stm32f4_discovery.h.

#define LED_6_GPIO_OFF   gpio_clear

Definition at line 145 of file stm32f4_discovery.h.

#define LED_6_GPIO_ON   gpio_set

Definition at line 144 of file stm32f4_discovery.h.

#define LED_6_GPIO_PIN   GPIO15

Definition at line 142 of file stm32f4_discovery.h.

#define PPM_CC_IE   TIM_DIER_CC4IE

Definition at line 570 of file stm32f4_discovery.h.

#define PPM_CC_IF   TIM_SR_CC4IF

Definition at line 571 of file stm32f4_discovery.h.

#define PPM_CHANNEL   TIM_IC4

Definition at line 565 of file stm32f4_discovery.h.

#define PPM_GPIO_AF   GPIO_AF3

Definition at line 574 of file stm32f4_discovery.h.

#define PPM_GPIO_PIN   GPIO9

Definition at line 573 of file stm32f4_discovery.h.

#define PPM_GPIO_PORT   GPIOC

Definition at line 572 of file stm32f4_discovery.h.

#define PPM_IRQ   NVIC_TIM8_CC_IRQ

Definition at line 567 of file stm32f4_discovery.h.

#define PPM_IRQ2   NVIC_TIM8_UP_TIM13_IRQ

Definition at line 568 of file stm32f4_discovery.h.

#define PPM_TIMER_INPUT   TIM_IC_IN_TI4

Definition at line 566 of file stm32f4_discovery.h.

#define PWM_SERVO_0   0

Definition at line 394 of file stm32f4_discovery.h.

#define PWM_SERVO_0_AF   GPIO_AF1

Definition at line 398 of file stm32f4_discovery.h.

#define PWM_SERVO_0_GPIO   GPIOE

Definition at line 396 of file stm32f4_discovery.h.

#define PWM_SERVO_0_OC   TIM_OC1

Definition at line 399 of file stm32f4_discovery.h.

#define PWM_SERVO_0_OC_BIT   (1<<0)

Definition at line 400 of file stm32f4_discovery.h.

#define PWM_SERVO_0_PIN   GPIO9

Definition at line 397 of file stm32f4_discovery.h.

#define PWM_SERVO_0_TIMER   TIM1

Definition at line 395 of file stm32f4_discovery.h.

#define PWM_SERVO_1   1

Definition at line 406 of file stm32f4_discovery.h.

#define PWM_SERVO_10_OC_BIT   0

Definition at line 524 of file stm32f4_discovery.h.

#define PWM_SERVO_11_OC_BIT   0

Definition at line 536 of file stm32f4_discovery.h.

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 410 of file stm32f4_discovery.h.

#define PWM_SERVO_1_GPIO   GPIOE

Definition at line 408 of file stm32f4_discovery.h.

#define PWM_SERVO_1_OC   TIM_OC2

Definition at line 411 of file stm32f4_discovery.h.

#define PWM_SERVO_1_OC_BIT   (1<<1)

Definition at line 412 of file stm32f4_discovery.h.

#define PWM_SERVO_1_PIN   GPIO11

Definition at line 409 of file stm32f4_discovery.h.

#define PWM_SERVO_1_TIMER   TIM1

Definition at line 407 of file stm32f4_discovery.h.

#define PWM_SERVO_2   2

Definition at line 418 of file stm32f4_discovery.h.

#define PWM_SERVO_2_AF   GPIO_AF1

Definition at line 422 of file stm32f4_discovery.h.

#define PWM_SERVO_2_GPIO   GPIOE

Definition at line 420 of file stm32f4_discovery.h.

#define PWM_SERVO_2_OC   TIM_OC3

Definition at line 423 of file stm32f4_discovery.h.

#define PWM_SERVO_2_OC_BIT   (1<<2)

Definition at line 424 of file stm32f4_discovery.h.

#define PWM_SERVO_2_PIN   GPIO13

Definition at line 421 of file stm32f4_discovery.h.

#define PWM_SERVO_2_TIMER   TIM1

Definition at line 419 of file stm32f4_discovery.h.

#define PWM_SERVO_3   3

Definition at line 430 of file stm32f4_discovery.h.

#define PWM_SERVO_3_AF   GPIO_AF1

Definition at line 434 of file stm32f4_discovery.h.

#define PWM_SERVO_3_GPIO   GPIOE

Definition at line 432 of file stm32f4_discovery.h.

#define PWM_SERVO_3_OC   TIM_OC4

Definition at line 435 of file stm32f4_discovery.h.

#define PWM_SERVO_3_OC_BIT   (1<<3)

Definition at line 436 of file stm32f4_discovery.h.

#define PWM_SERVO_3_PIN   GPIO14

Definition at line 433 of file stm32f4_discovery.h.

#define PWM_SERVO_3_TIMER   TIM1

Definition at line 431 of file stm32f4_discovery.h.

#define PWM_SERVO_4   4

Definition at line 442 of file stm32f4_discovery.h.

#define PWM_SERVO_4_AF   GPIO_AF3

Definition at line 446 of file stm32f4_discovery.h.

#define PWM_SERVO_4_GPIO   GPIOE

Definition at line 444 of file stm32f4_discovery.h.

#define PWM_SERVO_4_OC   TIM_OC1

Definition at line 447 of file stm32f4_discovery.h.

#define PWM_SERVO_4_OC_BIT   (1<<0)

Definition at line 448 of file stm32f4_discovery.h.

#define PWM_SERVO_4_PIN   GPIO5

Definition at line 445 of file stm32f4_discovery.h.

#define PWM_SERVO_4_TIMER   TIM9

Definition at line 443 of file stm32f4_discovery.h.

#define PWM_SERVO_5   5

Definition at line 454 of file stm32f4_discovery.h.

#define PWM_SERVO_5_AF   GPIO_AF3

Definition at line 458 of file stm32f4_discovery.h.

#define PWM_SERVO_5_GPIO   GPIOE

Definition at line 456 of file stm32f4_discovery.h.

#define PWM_SERVO_5_OC   TIM_OC2

Definition at line 459 of file stm32f4_discovery.h.

#define PWM_SERVO_5_OC_BIT   (1<<1)

Definition at line 460 of file stm32f4_discovery.h.

#define PWM_SERVO_5_PIN   GPIO6

Definition at line 457 of file stm32f4_discovery.h.

#define PWM_SERVO_5_TIMER   TIM9

Definition at line 455 of file stm32f4_discovery.h.

#define PWM_SERVO_6   6

Definition at line 467 of file stm32f4_discovery.h.

#define PWM_SERVO_6_AF   GPIO_AF2

Definition at line 471 of file stm32f4_discovery.h.

#define PWM_SERVO_6_GPIO   GPIOA

Definition at line 469 of file stm32f4_discovery.h.

#define PWM_SERVO_6_OC   TIM_OC4

Definition at line 472 of file stm32f4_discovery.h.

#define PWM_SERVO_6_OC_BIT   (1<<3)

Definition at line 473 of file stm32f4_discovery.h.

#define PWM_SERVO_6_PIN   GPIO3

Definition at line 470 of file stm32f4_discovery.h.

#define PWM_SERVO_6_TIMER   TIM5

Definition at line 468 of file stm32f4_discovery.h.

#define PWM_SERVO_7   7

Definition at line 479 of file stm32f4_discovery.h.

#define PWM_SERVO_7_AF   GPIO_AF2

Definition at line 483 of file stm32f4_discovery.h.

#define PWM_SERVO_7_GPIO   GPIOA

Definition at line 481 of file stm32f4_discovery.h.

#define PWM_SERVO_7_OC   TIM_OC3

Definition at line 484 of file stm32f4_discovery.h.

#define PWM_SERVO_7_OC_BIT   (1<<2)

Definition at line 485 of file stm32f4_discovery.h.

#define PWM_SERVO_7_PIN   GPIO2

Definition at line 482 of file stm32f4_discovery.h.

#define PWM_SERVO_7_TIMER   TIM5

Definition at line 480 of file stm32f4_discovery.h.

#define PWM_SERVO_8   8

Definition at line 491 of file stm32f4_discovery.h.

#define PWM_SERVO_8_AF   GPIO_AF2

Definition at line 495 of file stm32f4_discovery.h.

#define PWM_SERVO_8_GPIO   GPIOA

Definition at line 493 of file stm32f4_discovery.h.

#define PWM_SERVO_8_OC   TIM_OC2

Definition at line 496 of file stm32f4_discovery.h.

#define PWM_SERVO_8_OC_BIT   (1<<1)

Definition at line 497 of file stm32f4_discovery.h.

#define PWM_SERVO_8_PIN   GPIO1

Definition at line 494 of file stm32f4_discovery.h.

#define PWM_SERVO_8_TIMER   TIM5

Definition at line 492 of file stm32f4_discovery.h.

#define PWM_SERVO_9   9

Definition at line 503 of file stm32f4_discovery.h.

#define PWM_SERVO_9_AF   GPIO_AF2

Definition at line 507 of file stm32f4_discovery.h.

#define PWM_SERVO_9_GPIO   GPIOA

Definition at line 505 of file stm32f4_discovery.h.

#define PWM_SERVO_9_OC   TIM_OC1

Definition at line 508 of file stm32f4_discovery.h.

#define PWM_SERVO_9_OC_BIT   (1<<0)

Definition at line 509 of file stm32f4_discovery.h.

#define PWM_SERVO_9_PIN   GPIO0

Definition at line 506 of file stm32f4_discovery.h.

#define PWM_SERVO_9_TIMER   TIM5

Definition at line 504 of file stm32f4_discovery.h.

#define PWM_TIM12_CHAN_MASK   (PWM_SERVO_10_OC_BIT|PWM_SERVO_11_OC_BIT)

Definition at line 542 of file stm32f4_discovery.h.

Referenced by actuators_pwm_arch_init().

Definition at line 539 of file stm32f4_discovery.h.

Definition at line 541 of file stm32f4_discovery.h.

#define PWM_TIM9_CHAN_MASK   (PWM_SERVO_4_OC_BIT|PWM_SERVO_5_OC_BIT)

Definition at line 540 of file stm32f4_discovery.h.

Referenced by actuators_pwm_arch_init().

#define PWM_USE_TIM1   1

Definition at line 366 of file stm32f4_discovery.h.

#define PWM_USE_TIM12   1

Definition at line 370 of file stm32f4_discovery.h.

#define PWM_USE_TIM5   1

Definition at line 368 of file stm32f4_discovery.h.

#define PWM_USE_TIM9   1

Definition at line 369 of file stm32f4_discovery.h.

#define SPEKTRUM_BIND_PIN   GPIO8

Definition at line 581 of file stm32f4_discovery.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOA

Definition at line 582 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_AF   GPIO_AF7

Definition at line 587 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_BANK   GPIOA

Definition at line 585 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_DEV   USART1

Definition at line 590 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ

Definition at line 588 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_ISR   usart1_isr

Definition at line 589 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_PIN   GPIO10

Definition at line 586 of file stm32f4_discovery.h.

#define SPEKTRUM_UART1_RCC   RCC_USART1

Definition at line 584 of file stm32f4_discovery.h.

#define SPI1_GPIO_AF   GPIO_AF5

Definition at line 221 of file stm32f4_discovery.h.

#define SPI1_GPIO_MISO   GPIO4

Definition at line 225 of file stm32f4_discovery.h.

#define SPI1_GPIO_MOSI   GPIO5

Definition at line 227 of file stm32f4_discovery.h.

#define SPI1_GPIO_PORT_MISO   GPIOB

Definition at line 224 of file stm32f4_discovery.h.

#define SPI1_GPIO_PORT_MOSI   GPIOB

Definition at line 226 of file stm32f4_discovery.h.

#define SPI1_GPIO_PORT_SCK   GPIOB

Definition at line 222 of file stm32f4_discovery.h.

#define SPI1_GPIO_SCK   GPIO3

Definition at line 223 of file stm32f4_discovery.h.

#define SPI2_GPIO_AF   GPIO_AF5

Definition at line 232 of file stm32f4_discovery.h.

#define SPI2_GPIO_MISO   GPIO14

Definition at line 236 of file stm32f4_discovery.h.

#define SPI2_GPIO_MOSI   GPIO15

Definition at line 238 of file stm32f4_discovery.h.

#define SPI2_GPIO_PORT_MISO   GPIOB

Definition at line 235 of file stm32f4_discovery.h.

#define SPI2_GPIO_PORT_MOSI   GPIOB

Definition at line 237 of file stm32f4_discovery.h.

#define SPI2_GPIO_PORT_SCK   GPIOB

Definition at line 233 of file stm32f4_discovery.h.

#define SPI2_GPIO_SCK   GPIO13

Definition at line 234 of file stm32f4_discovery.h.

#define SPI3_GPIO_AF   GPIO_AF6

Definition at line 241 of file stm32f4_discovery.h.

#define SPI3_GPIO_MISO   GPIO11

Definition at line 245 of file stm32f4_discovery.h.

#define SPI3_GPIO_MOSI   GPIO12

Definition at line 247 of file stm32f4_discovery.h.

#define SPI3_GPIO_PORT_MISO   GPIOC

Definition at line 244 of file stm32f4_discovery.h.

#define SPI3_GPIO_PORT_MOSI   GPIOC

Definition at line 246 of file stm32f4_discovery.h.

#define SPI3_GPIO_PORT_SCK   GPIOC

Definition at line 242 of file stm32f4_discovery.h.

#define SPI3_GPIO_SCK   GPIO10

Definition at line 243 of file stm32f4_discovery.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO2

Definition at line 250 of file stm32f4_discovery.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOE

Definition at line 249 of file stm32f4_discovery.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO7

Definition at line 252 of file stm32f4_discovery.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOE

Definition at line 251 of file stm32f4_discovery.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO3

Definition at line 254 of file stm32f4_discovery.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOE

Definition at line 253 of file stm32f4_discovery.h.

#define UART1_GPIO_AF   GPIO_AF7

Definition at line 167 of file stm32f4_discovery.h.

#define UART1_GPIO_PORT_RX   GPIOB

Definition at line 170 of file stm32f4_discovery.h.

#define UART1_GPIO_PORT_TX   GPIOB

Definition at line 168 of file stm32f4_discovery.h.

#define UART1_GPIO_RX   GPIO7

Definition at line 171 of file stm32f4_discovery.h.

#define UART1_GPIO_TX   GPIO6

Definition at line 169 of file stm32f4_discovery.h.

#define UART2_GPIO_AF   GPIO_AF7

Definition at line 174 of file stm32f4_discovery.h.

#define UART2_GPIO_PORT_RX   GPIOD

Definition at line 177 of file stm32f4_discovery.h.

#define UART2_GPIO_PORT_TX   GPIOD

Definition at line 175 of file stm32f4_discovery.h.

#define UART2_GPIO_RX   GPIO6

Definition at line 178 of file stm32f4_discovery.h.

#define UART2_GPIO_TX   GPIO5

Definition at line 176 of file stm32f4_discovery.h.

#define UART3_GPIO_AF   GPIO_AF7

Definition at line 180 of file stm32f4_discovery.h.

#define UART3_GPIO_PORT_RX   GPIOD

Definition at line 183 of file stm32f4_discovery.h.

#define UART3_GPIO_PORT_TX   GPIOD

Definition at line 181 of file stm32f4_discovery.h.

#define UART3_GPIO_RX   GPIO9

Definition at line 184 of file stm32f4_discovery.h.

#define UART3_GPIO_TX   GPIO8

Definition at line 182 of file stm32f4_discovery.h.

#define UART4_GPIO_AF   GPIO_AF8

Definition at line 188 of file stm32f4_discovery.h.

#define UART4_GPIO_PORT_RX   GPIOC

Definition at line 191 of file stm32f4_discovery.h.

#define UART4_GPIO_PORT_TX   GPIOC

Definition at line 189 of file stm32f4_discovery.h.

#define UART4_GPIO_RX   GPIO11

Definition at line 192 of file stm32f4_discovery.h.

#define UART4_GPIO_TX   GPIO10

Definition at line 190 of file stm32f4_discovery.h.

#define UART5_GPIO_AF   GPIO_AF8

Definition at line 194 of file stm32f4_discovery.h.

#define UART5_GPIO_PORT_RX   GPIOD

Definition at line 197 of file stm32f4_discovery.h.

#define UART5_GPIO_PORT_TX   GPIOC

Definition at line 195 of file stm32f4_discovery.h.

#define UART5_GPIO_RX   GPIO2

Definition at line 198 of file stm32f4_discovery.h.

#define UART5_GPIO_TX   GPIO12

Definition at line 196 of file stm32f4_discovery.h.

#define UART6_GPIO_AF   GPIO_AF8

Definition at line 201 of file stm32f4_discovery.h.

#define UART6_GPIO_PORT_RX   GPIOC

Definition at line 204 of file stm32f4_discovery.h.

#define UART6_GPIO_PORT_TX   GPIOC

Definition at line 202 of file stm32f4_discovery.h.

#define UART6_GPIO_RX   GPIO7

Definition at line 205 of file stm32f4_discovery.h.

#define UART6_GPIO_TX   GPIO6

Definition at line 203 of file stm32f4_discovery.h.

#define USE_AD_TIM2   1

Definition at line 278 of file stm32f4_discovery.h.

#define USE_ADC_1   1

Definition at line 281 of file stm32f4_discovery.h.

#define USE_ADC_2   1

Definition at line 282 of file stm32f4_discovery.h.

#define USE_ADC_3   1

Definition at line 283 of file stm32f4_discovery.h.

#define USE_ADC_4   1

Definition at line 284 of file stm32f4_discovery.h.

#define USE_ADC_5   1

Definition at line 285 of file stm32f4_discovery.h.

#define USE_ADC_6   1

Definition at line 286 of file stm32f4_discovery.h.

#define USE_LED_3   1

Definition at line 109 of file stm32f4_discovery.h.

#define USE_LED_4   1

Definition at line 119 of file stm32f4_discovery.h.

#define USE_LED_5   1

Definition at line 129 of file stm32f4_discovery.h.

#define USE_LED_6   1

Definition at line 139 of file stm32f4_discovery.h.

#define USE_PPM_TIM8   1

Definition at line 563 of file stm32f4_discovery.h.

#define USE_PWM0   1

Definition at line 372 of file stm32f4_discovery.h.

#define USE_PWM1   1

Definition at line 373 of file stm32f4_discovery.h.

#define USE_PWM10   0

Definition at line 383 of file stm32f4_discovery.h.

#define USE_PWM11   0

Definition at line 384 of file stm32f4_discovery.h.

#define USE_PWM2   1

Definition at line 374 of file stm32f4_discovery.h.

#define USE_PWM3   1

Definition at line 375 of file stm32f4_discovery.h.

#define USE_PWM4   1

Definition at line 376 of file stm32f4_discovery.h.

#define USE_PWM5   1

Definition at line 377 of file stm32f4_discovery.h.

#define USE_PWM6   1

Definition at line 378 of file stm32f4_discovery.h.

#define USE_PWM7   1

Definition at line 379 of file stm32f4_discovery.h.

#define USE_PWM8   1

Definition at line 380 of file stm32f4_discovery.h.

#define USE_PWM9   1

Definition at line 381 of file stm32f4_discovery.h.