Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
px4io_2.4.h File Reference

Go to the source code of this file.

Macros

#define BOARD_PX4IO
 
#define EXT_CLK   24000000
 
#define AHB_CLK   24000000
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOB
 
#define LED_1_GPIO_PIN   GPIO14
 
#define LED_1_GPIO_ON   gpio_clear
 
#define LED_1_GPIO_OFF   gpio_set
 
#define LED_1_AFIO_REMAP   ((void)0)
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOB
 
#define LED_2_GPIO_PIN   GPIO15
 
#define LED_2_GPIO_ON   gpio_clear
 
#define LED_2_GPIO_OFF   gpio_set
 
#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_clear
 
#define LED_3_GPIO_OFF   gpio_set
 
#define LED_3_AFIO_REMAP   ((void)0)
 
#define UART1_GPIO_AF   0
 
#define UART1_GPIO_PORT_RX   GPIOA
 
#define UART1_GPIO_RX   GPIO10
 
#define UART1_GPIO_PORT_TX   GPIOA
 
#define UART1_GPIO_TX   GPIO9
 
#define UART2_GPIO_AF   0
 
#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   0
 
#define UART3_GPIO_PORT_RX   GPIOB
 
#define UART3_GPIO_RX   GPIO11
 
#define UART3_GPIO_PORT_TX   GPIOB
 
#define UART3_GPIO_TX   GPIO10
 
#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_TIMER   3
 
#define SPEKTRUM_UART1_RCC   RCC_USART1
 
#define SPEKTRUM_UART1_BANK   GPIOA
 
#define SPEKTRUM_UART1_PIN   GPIO10
 
#define SPEKTRUM_UART1_AF   0
 
#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ
 
#define SPEKTRUM_UART1_ISR   usart1_isr
 
#define SPEKTRUM_UART1_DEV   USART1
 
#define USE_PPM_TIM1   1
 
#define PPM_CHANNEL   TIM_IC1
 
#define PPM_TIMER_INPUT   TIM_IC_IN_TI1
 
#define PPM_IRQ   NVIC_TIM1_UP_IRQ
 
#define PPM_IRQ2   NVIC_TIM1_CC_IRQ
 
#define PPM_CC_IE   TIM_DIER_CC1IE
 
#define PPM_CC_IF   TIM_SR_CC1IF
 
#define PPM_GPIO_PORT   GPIOA
 
#define PPM_GPIO_PIN   GPIO8
 
#define PPM_GPIO_AF   0
 
#define USE_ADC_1   0
 
#define PWM_USE_TIM2   1
 
#define PWM_USE_TIM4   1
 
#define USE_PWM1   1
 
#define USE_PWM2   1
 
#define USE_PWM3   1
 
#define USE_PWM4   1
 
#define PWM_SERVO_1   0
 
#define PWM_SERVO_1_TIMER   TIM2
 
#define PWM_SERVO_1_GPIO   GPIOA
 
#define PWM_SERVO_1_PIN   GPIO0
 
#define PWM_SERVO_1_AF   0
 
#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   TIM2
 
#define PWM_SERVO_2_GPIO   GPIOA
 
#define PWM_SERVO_2_PIN   GPIO1
 
#define PWM_SERVO_2_AF   0
 
#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   TIM4
 
#define PWM_SERVO_3_GPIO   GPIOB
 
#define PWM_SERVO_3_PIN   GPIO8
 
#define PWM_SERVO_3_AF   0
 
#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   TIM4
 
#define PWM_SERVO_4_GPIO   GPIOB
 
#define PWM_SERVO_4_PIN   GPIO9
 
#define PWM_SERVO_4_AF   0
 
#define PWM_SERVO_4_OC   TIM_OC4
 
#define PWM_SERVO_4_OC_BIT   (1<<3)
 
#define PWM_SERVO_5_OC_BIT   0
 
#define PWM_SERVO_6_OC_BIT   0
 
#define PWM_SERVO_7_OC_BIT   0
 
#define PWM_SERVO_8_OC_BIT   0
 
#define PWM_TIM2_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT)
 
#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)
 
#define DEFAULT_ACTUATORS   "modules/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 245 of file px4io_2.4.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 247 of file px4io_2.4.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 246 of file px4io_2.4.h.

◆ AHB_CLK

#define AHB_CLK   24000000

Definition at line 9 of file px4io_2.4.h.

◆ BOARD_PX4IO

#define BOARD_PX4IO

Definition at line 4 of file px4io_2.4.h.

◆ DEFAULT_ACTUATORS

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

Definition at line 244 of file px4io_2.4.h.

◆ EXT_CLK

#define EXT_CLK   24000000

Definition at line 8 of file px4io_2.4.h.

◆ LED_1_AFIO_REMAP

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 23 of file px4io_2.4.h.

◆ LED_1_GPIO

#define LED_1_GPIO   GPIOB

Definition at line 19 of file px4io_2.4.h.

◆ LED_1_GPIO_OFF

#define LED_1_GPIO_OFF   gpio_set

Definition at line 22 of file px4io_2.4.h.

◆ LED_1_GPIO_ON

#define LED_1_GPIO_ON   gpio_clear

Definition at line 21 of file px4io_2.4.h.

◆ LED_1_GPIO_PIN

#define LED_1_GPIO_PIN   GPIO14

Definition at line 20 of file px4io_2.4.h.

◆ LED_2_AFIO_REMAP

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 33 of file px4io_2.4.h.

◆ LED_2_GPIO

#define LED_2_GPIO   GPIOB

Definition at line 29 of file px4io_2.4.h.

◆ LED_2_GPIO_OFF

#define LED_2_GPIO_OFF   gpio_set

Definition at line 32 of file px4io_2.4.h.

◆ LED_2_GPIO_ON

#define LED_2_GPIO_ON   gpio_clear

Definition at line 31 of file px4io_2.4.h.

◆ LED_2_GPIO_PIN

#define LED_2_GPIO_PIN   GPIO15

Definition at line 30 of file px4io_2.4.h.

◆ LED_3_AFIO_REMAP

#define LED_3_AFIO_REMAP   ((void)0)

Definition at line 43 of file px4io_2.4.h.

◆ LED_3_GPIO

#define LED_3_GPIO   GPIOB

Definition at line 39 of file px4io_2.4.h.

◆ LED_3_GPIO_OFF

#define LED_3_GPIO_OFF   gpio_set

Definition at line 42 of file px4io_2.4.h.

◆ LED_3_GPIO_ON

#define LED_3_GPIO_ON   gpio_clear

Definition at line 41 of file px4io_2.4.h.

◆ LED_3_GPIO_PIN

#define LED_3_GPIO_PIN   GPIO13

Definition at line 40 of file px4io_2.4.h.

◆ PPM_CC_IE

#define PPM_CC_IE   TIM_DIER_CC1IE

Definition at line 99 of file px4io_2.4.h.

◆ PPM_CC_IF

#define PPM_CC_IF   TIM_SR_CC1IF

Definition at line 100 of file px4io_2.4.h.

◆ PPM_CHANNEL

#define PPM_CHANNEL   TIM_IC1

Definition at line 94 of file px4io_2.4.h.

◆ PPM_GPIO_AF

#define PPM_GPIO_AF   0

Definition at line 103 of file px4io_2.4.h.

◆ PPM_GPIO_PIN

#define PPM_GPIO_PIN   GPIO8

Definition at line 102 of file px4io_2.4.h.

◆ PPM_GPIO_PORT

#define PPM_GPIO_PORT   GPIOA

Definition at line 101 of file px4io_2.4.h.

◆ PPM_IRQ

#define PPM_IRQ   NVIC_TIM1_UP_IRQ

Definition at line 96 of file px4io_2.4.h.

◆ PPM_IRQ2

#define PPM_IRQ2   NVIC_TIM1_CC_IRQ

Definition at line 97 of file px4io_2.4.h.

◆ PPM_TIMER_INPUT

#define PPM_TIMER_INPUT   TIM_IC_IN_TI1

Definition at line 95 of file px4io_2.4.h.

◆ PWM_SERVO_1

#define PWM_SERVO_1   0

Definition at line 141 of file px4io_2.4.h.

◆ PWM_SERVO_1_AF

#define PWM_SERVO_1_AF   0

Definition at line 145 of file px4io_2.4.h.

◆ PWM_SERVO_1_GPIO

#define PWM_SERVO_1_GPIO   GPIOA

Definition at line 143 of file px4io_2.4.h.

◆ PWM_SERVO_1_OC

#define PWM_SERVO_1_OC   TIM_OC1

Definition at line 146 of file px4io_2.4.h.

◆ PWM_SERVO_1_OC_BIT

#define PWM_SERVO_1_OC_BIT   (1<<0)

Definition at line 147 of file px4io_2.4.h.

◆ PWM_SERVO_1_PIN

#define PWM_SERVO_1_PIN   GPIO0

Definition at line 144 of file px4io_2.4.h.

◆ PWM_SERVO_1_TIMER

#define PWM_SERVO_1_TIMER   TIM2

Definition at line 142 of file px4io_2.4.h.

◆ PWM_SERVO_2

#define PWM_SERVO_2   1

Definition at line 153 of file px4io_2.4.h.

◆ PWM_SERVO_2_AF

#define PWM_SERVO_2_AF   0

Definition at line 157 of file px4io_2.4.h.

◆ PWM_SERVO_2_GPIO

#define PWM_SERVO_2_GPIO   GPIOA

Definition at line 155 of file px4io_2.4.h.

◆ PWM_SERVO_2_OC

#define PWM_SERVO_2_OC   TIM_OC2

Definition at line 158 of file px4io_2.4.h.

◆ PWM_SERVO_2_OC_BIT

#define PWM_SERVO_2_OC_BIT   (1<<1)

Definition at line 159 of file px4io_2.4.h.

◆ PWM_SERVO_2_PIN

#define PWM_SERVO_2_PIN   GPIO1

Definition at line 156 of file px4io_2.4.h.

◆ PWM_SERVO_2_TIMER

#define PWM_SERVO_2_TIMER   TIM2

Definition at line 154 of file px4io_2.4.h.

◆ PWM_SERVO_3

#define PWM_SERVO_3   2

Definition at line 165 of file px4io_2.4.h.

◆ PWM_SERVO_3_AF

#define PWM_SERVO_3_AF   0

Definition at line 169 of file px4io_2.4.h.

◆ PWM_SERVO_3_GPIO

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 167 of file px4io_2.4.h.

◆ PWM_SERVO_3_OC

#define PWM_SERVO_3_OC   TIM_OC3

Definition at line 170 of file px4io_2.4.h.

◆ PWM_SERVO_3_OC_BIT

#define PWM_SERVO_3_OC_BIT   (1<<2)

Definition at line 171 of file px4io_2.4.h.

◆ PWM_SERVO_3_PIN

#define PWM_SERVO_3_PIN   GPIO8

Definition at line 168 of file px4io_2.4.h.

◆ PWM_SERVO_3_TIMER

#define PWM_SERVO_3_TIMER   TIM4

Definition at line 166 of file px4io_2.4.h.

◆ PWM_SERVO_4

#define PWM_SERVO_4   3

Definition at line 177 of file px4io_2.4.h.

◆ PWM_SERVO_4_AF

#define PWM_SERVO_4_AF   0

Definition at line 181 of file px4io_2.4.h.

◆ PWM_SERVO_4_GPIO

#define PWM_SERVO_4_GPIO   GPIOB

Definition at line 179 of file px4io_2.4.h.

◆ PWM_SERVO_4_OC

#define PWM_SERVO_4_OC   TIM_OC4

Definition at line 182 of file px4io_2.4.h.

◆ PWM_SERVO_4_OC_BIT

#define PWM_SERVO_4_OC_BIT   (1<<3)

Definition at line 183 of file px4io_2.4.h.

◆ PWM_SERVO_4_PIN

#define PWM_SERVO_4_PIN   GPIO9

Definition at line 180 of file px4io_2.4.h.

◆ PWM_SERVO_4_TIMER

#define PWM_SERVO_4_TIMER   TIM4

Definition at line 178 of file px4io_2.4.h.

◆ PWM_SERVO_5_OC_BIT

#define PWM_SERVO_5_OC_BIT   0

Definition at line 197 of file px4io_2.4.h.

◆ PWM_SERVO_6_OC_BIT

#define PWM_SERVO_6_OC_BIT   0

Definition at line 209 of file px4io_2.4.h.

◆ PWM_SERVO_7_OC_BIT

#define PWM_SERVO_7_OC_BIT   0

Definition at line 221 of file px4io_2.4.h.

◆ PWM_SERVO_8_OC_BIT

#define PWM_SERVO_8_OC_BIT   0

Definition at line 233 of file px4io_2.4.h.

◆ PWM_TIM2_CHAN_MASK

#define PWM_TIM2_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT)

Definition at line 237 of file px4io_2.4.h.

◆ PWM_TIM4_CHAN_MASK

#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)

Definition at line 239 of file px4io_2.4.h.

◆ PWM_USE_TIM2

#define PWM_USE_TIM2   1

Definition at line 124 of file px4io_2.4.h.

◆ PWM_USE_TIM4

#define PWM_USE_TIM4   1

Definition at line 126 of file px4io_2.4.h.

◆ RADIO_CONTROL_POWER_OFF

#define RADIO_CONTROL_POWER_OFF   gpio_clear

Definition at line 77 of file px4io_2.4.h.

◆ RADIO_CONTROL_POWER_ON

#define RADIO_CONTROL_POWER_ON   gpio_set

Definition at line 76 of file px4io_2.4.h.

◆ RADIO_CONTROL_POWER_PIN

#define RADIO_CONTROL_POWER_PIN   GPIO13

Definition at line 75 of file px4io_2.4.h.

◆ RADIO_CONTROL_POWER_PORT

#define RADIO_CONTROL_POWER_PORT   GPIOC

Definition at line 74 of file px4io_2.4.h.

◆ SPEKTRUM_TIMER

#define SPEKTRUM_TIMER   3

Definition at line 79 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_AF

#define SPEKTRUM_UART1_AF   0

Definition at line 84 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_BANK

#define SPEKTRUM_UART1_BANK   GPIOA

Definition at line 82 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_DEV

#define SPEKTRUM_UART1_DEV   USART1

Definition at line 87 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_IRQ

#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ

Definition at line 85 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_ISR

#define SPEKTRUM_UART1_ISR   usart1_isr

Definition at line 86 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_PIN

#define SPEKTRUM_UART1_PIN   GPIO10

Definition at line 83 of file px4io_2.4.h.

◆ SPEKTRUM_UART1_RCC

#define SPEKTRUM_UART1_RCC   RCC_USART1

Definition at line 81 of file px4io_2.4.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   0

Definition at line 52 of file px4io_2.4.h.

◆ UART1_GPIO_PORT_RX

#define UART1_GPIO_PORT_RX   GPIOA

Definition at line 53 of file px4io_2.4.h.

◆ UART1_GPIO_PORT_TX

#define UART1_GPIO_PORT_TX   GPIOA

Definition at line 55 of file px4io_2.4.h.

◆ UART1_GPIO_RX

#define UART1_GPIO_RX   GPIO10

Definition at line 54 of file px4io_2.4.h.

◆ UART1_GPIO_TX

#define UART1_GPIO_TX   GPIO9

Definition at line 56 of file px4io_2.4.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   0

Definition at line 58 of file px4io_2.4.h.

◆ UART2_GPIO_PORT_RX

#define UART2_GPIO_PORT_RX   GPIOA

Definition at line 59 of file px4io_2.4.h.

◆ UART2_GPIO_PORT_TX

#define UART2_GPIO_PORT_TX   GPIOA

Definition at line 61 of file px4io_2.4.h.

◆ UART2_GPIO_RX

#define UART2_GPIO_RX   GPIO3

Definition at line 60 of file px4io_2.4.h.

◆ UART2_GPIO_TX

#define UART2_GPIO_TX   GPIO2

Definition at line 62 of file px4io_2.4.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   0

Definition at line 64 of file px4io_2.4.h.

◆ UART3_GPIO_PORT_RX

#define UART3_GPIO_PORT_RX   GPIOB

Definition at line 65 of file px4io_2.4.h.

◆ UART3_GPIO_PORT_TX

#define UART3_GPIO_PORT_TX   GPIOB

Definition at line 67 of file px4io_2.4.h.

◆ UART3_GPIO_RX

#define UART3_GPIO_RX   GPIO11

Definition at line 66 of file px4io_2.4.h.

◆ UART3_GPIO_TX

#define UART3_GPIO_TX   GPIO10

Definition at line 68 of file px4io_2.4.h.

◆ USE_ADC_1

#define USE_ADC_1   0

Definition at line 107 of file px4io_2.4.h.

◆ USE_LED_1

#define USE_LED_1   1

Definition at line 17 of file px4io_2.4.h.

◆ USE_LED_2

#define USE_LED_2   1

Definition at line 27 of file px4io_2.4.h.

◆ USE_LED_3

#define USE_LED_3   1

Definition at line 37 of file px4io_2.4.h.

◆ USE_PPM_TIM1

#define USE_PPM_TIM1   1

Definition at line 93 of file px4io_2.4.h.

◆ USE_PWM1

#define USE_PWM1   1

Definition at line 130 of file px4io_2.4.h.

◆ USE_PWM2

#define USE_PWM2   1

Definition at line 131 of file px4io_2.4.h.

◆ USE_PWM3

#define USE_PWM3   1

Definition at line 132 of file px4io_2.4.h.

◆ USE_PWM4

#define USE_PWM4   1

Definition at line 133 of file px4io_2.4.h.