Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 RADIO_CONTROL_POWER   GPIOC
 
#define RADIO_CONTROL_POWER_PIN   GPIO13
 
#define RADIO_CONTROL_POWER_ON   gpio_clear
 
#define RADIO_CONTROL_POWER_OFF   gpio_set
 
#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   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 

Macro Definition Documentation

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

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

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

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

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

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

#define AHB_CLK   24000000

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

#define BOARD_PX4IO

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

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

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

#define EXT_CLK   24000000

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

#define LED_1_AFIO_REMAP   ((void)0)

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

#define LED_1_GPIO   GPIOB

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

#define LED_1_GPIO_OFF   gpio_set

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

#define LED_1_GPIO_ON   gpio_clear

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

#define LED_1_GPIO_PIN   GPIO14

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

#define LED_2_AFIO_REMAP   ((void)0)

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

#define LED_2_GPIO   GPIOB

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

#define LED_2_GPIO_OFF   gpio_set

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

#define LED_2_GPIO_ON   gpio_clear

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

#define LED_2_GPIO_PIN   GPIO15

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

#define LED_3_AFIO_REMAP   ((void)0)

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

#define LED_3_GPIO   GPIOB

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

#define LED_3_GPIO_OFF   gpio_set

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

#define LED_3_GPIO_ON   gpio_clear

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

#define LED_3_GPIO_PIN   GPIO13

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

#define PPM_CC_IE   TIM_DIER_CC1IE

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

#define PPM_CC_IF   TIM_SR_CC1IF

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

#define PPM_CHANNEL   TIM_IC1

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

#define PPM_GPIO_AF   0

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

#define PPM_GPIO_PIN   GPIO8

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

#define PPM_GPIO_PORT   GPIOA

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

#define PPM_IRQ   NVIC_TIM1_UP_IRQ

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

#define PPM_IRQ2   NVIC_TIM1_CC_IRQ

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

#define PPM_TIMER_INPUT   TIM_IC_IN_TI1

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

#define PWM_SERVO_1   0

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

#define PWM_SERVO_1_AF   0

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

#define PWM_SERVO_1_GPIO   GPIOA

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

#define PWM_SERVO_1_OC   TIM_OC1

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

#define PWM_SERVO_1_OC_BIT   (1<<0)

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

#define PWM_SERVO_1_PIN   GPIO0

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

#define PWM_SERVO_1_TIMER   TIM2

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

#define PWM_SERVO_2   1

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

#define PWM_SERVO_2_AF   0

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

#define PWM_SERVO_2_GPIO   GPIOA

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

#define PWM_SERVO_2_OC   TIM_OC2

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

#define PWM_SERVO_2_OC_BIT   (1<<1)

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

#define PWM_SERVO_2_PIN   GPIO1

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

#define PWM_SERVO_2_TIMER   TIM2

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

#define PWM_SERVO_3   2

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

#define PWM_SERVO_3_AF   0

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

#define PWM_SERVO_3_GPIO   GPIOB

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

#define PWM_SERVO_3_OC   TIM_OC3

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

#define PWM_SERVO_3_OC_BIT   (1<<2)

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

#define PWM_SERVO_3_PIN   GPIO8

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

#define PWM_SERVO_3_TIMER   TIM4

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

#define PWM_SERVO_4   3

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

#define PWM_SERVO_4_AF   0

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

#define PWM_SERVO_4_GPIO   GPIOB

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

#define PWM_SERVO_4_OC   TIM_OC4

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

#define PWM_SERVO_4_OC_BIT   (1<<3)

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

#define PWM_SERVO_4_PIN   GPIO9

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

#define PWM_SERVO_4_TIMER   TIM4

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

#define PWM_SERVO_5_OC_BIT   0

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

#define PWM_SERVO_6_OC_BIT   0

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

#define PWM_SERVO_7_OC_BIT   0

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

#define PWM_SERVO_8_OC_BIT   0

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

#define PWM_TIM2_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT)

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

#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)

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

#define PWM_USE_TIM2   1

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

#define PWM_USE_TIM4   1

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

#define RADIO_CONTROL_POWER   GPIOC

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

#define RADIO_CONTROL_POWER_OFF   gpio_set

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

#define RADIO_CONTROL_POWER_ON   gpio_clear

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

#define RADIO_CONTROL_POWER_PIN   GPIO13

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

#define SPEKTRUM_TIMER   3

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

#define SPEKTRUM_UART1_AF   0

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

#define SPEKTRUM_UART1_BANK   GPIOA

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

#define SPEKTRUM_UART1_DEV   USART1

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

#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ

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

#define SPEKTRUM_UART1_ISR   usart1_isr

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

#define SPEKTRUM_UART1_PIN   GPIO10

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

#define SPEKTRUM_UART1_RCC   RCC_USART1

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

#define UART1_GPIO_AF   0

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

#define UART1_GPIO_PORT_RX   GPIOA

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

#define UART1_GPIO_PORT_TX   GPIOA

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

#define UART1_GPIO_RX   GPIO10

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

#define UART1_GPIO_TX   GPIO9

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

#define UART2_GPIO_AF   0

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

#define UART2_GPIO_PORT_RX   GPIOA

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

#define UART2_GPIO_PORT_TX   GPIOA

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

#define UART2_GPIO_RX   GPIO3

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

#define UART2_GPIO_TX   GPIO2

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

#define USE_ADC_1   0

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

#define USE_LED_1   1

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

#define USE_LED_2   1

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

#define USE_LED_3   1

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

#define USE_PPM_TIM1   1

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

#define USE_PWM1   1

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

#define USE_PWM2   1

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

#define USE_PWM3   1

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

#define USE_PWM4   1

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