Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
px4fmu_1.7.h File Reference

Go to the source code of this file.

Macros

#define BOARD_PX4FMU
 
#define EXT_CLK   16000000
 
#define AHB_CLK   168000000
 
#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 UART1_GPIO_AF   GPIO_AF7
 
#define UART1_GPIO_PORT_RX   GPIOB
 
#define UART1_GPIO_RX   GPIO7
 
#define UART1_GPIO_PORT_TX   GPIOB
 
#define UART1_GPIO_TX   GPIO6
 
#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 UART6_GPIO_AF   GPIO_AF8
 
#define UART6_GPIO_PORT_RX   GPIOC
 
#define UART6_GPIO_RX   GPIO7
 
#define UART6_GPIO_PORT_TX   GPIOC
 
#define UART6_GPIO_TX   GPIO6
 
#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 SPI3_GPIO_AF   GPIO_AF5
 
#define SPI3_GPIO_PORT_MISO   GPIOC
 
#define SPI3_GPIO_MISO   GPIO11
 
#define SPI3_GPIO_PORT_MOSI   GPIOB
 
#define SPI3_GPIO_MOSI   GPIO5
 
#define SPI3_GPIO_PORT_SCK   GPIOC
 
#define SPI3_GPIO_SCK   GPIO10
 
#define SPI_SELECT_SLAVE0_PORT   GPIOC
 
#define SPI_SELECT_SLAVE0_PIN   GPIO14
 
#define SPI_SELECT_SLAVE1_PORT   GPIOC
 
#define SPI_SELECT_SLAVE1_PIN   GPIO15
 
#define SPI_SELECT_SLAVE2_PORT   GPIOB
 
#define SPI_SELECT_SLAVE2_PIN   GPIO0
 
#define SPI_SELECT_SLAVE3_PORT   GPIOA
 
#define SPI_SELECT_SLAVE3_PIN   GPIO4
 
#define USE_AD_TIM4   1
 
#define BOARD_ADC_CHANNEL_1   11
 
#define BOARD_ADC_CHANNEL_2   12
 
#define BOARD_ADC_CHANNEL_3   13
 
#define BOARD_ADC_CHANNEL_4   10
 
#define USE_ADC_4   1
 
#define AD1_4_CHANNEL   10
 
#define ADC_4   AD1_4
 
#define ADC_4_GPIO_PORT   GPIOC
 
#define ADC_4_GPIO_PIN   GPIO0
 
#define ADC_CHANNEL_VSUPPLY   ADC_4
 
#define DefaultVoltageOfAdc(adc)   (0.006185*adc)
 
#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 I2C3_GPIO_PORT_SCL   GPIOA
 
#define I2C3_GPIO_SCL   GPIO8
 
#define I2C3_GPIO_PORT_SDA   GPIOC
 
#define I2C3_GPIO_SDA   GPIO9
 
#define USE_PPM_TIM1   1
 
#define PPM_CHANNEL   TIM_IC1
 
#define PPM_TIMER_INPUT   TIM_IC_IN_TI1
 
#define PPM_IRQ   NVIC_TIM1_CC_IRQ
 
#define PPM_IRQ2   NVIC_TIM1_UP_TIM10_IRQ
 
#define PPM_CC_IE   TIM_DIER_CC1IE
 
#define PPM_CC_IF   TIM_SR_CC1IF
 
#define PPM_GPIO_PORT   GPIOA
 
#define PPM_GPIO_PIN   GPIO10
 
#define PPM_GPIO_AF   GPIO_AF1
 
#define SPEKTRUM_BIND_PIN   GPIO4
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOC
 
#define SPEKTRUM_UART2_RCC   RCC_USART2
 
#define SPEKTRUM_UART2_BANK   GPIOA
 
#define SPEKTRUM_UART2_PIN   GPIO3
 
#define SPEKTRUM_UART2_AF   GPIO_AF7
 
#define SPEKTRUM_UART2_IRQ   NVIC_USART2_IRQ
 
#define SPEKTRUM_UART2_ISR   usart2_isr
 
#define SPEKTRUM_UART2_DEV   USART2
 
#define USE_BARO_BOARD   1
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 
#define PWM_USE_TIM2   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   GPIO_AF1
 
#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   GPIO_AF1
 
#define PWM_SERVO_2_OC   TIM_OC2
 
#define PWM_SERVO_2_OC_BIT   (1<<1)
 
#define PWM_SERVO_3_IDX   2
 
#define PWM_SERVO_3_TIMER   TIM2
 
#define PWM_SERVO_3_GPIO   GPIOA
 
#define PWM_SERVO_3_PIN   GPIO2
 
#define PWM_SERVO_3_AF   GPIO_AF1
 
#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   TIM2
 
#define PWM_SERVO_4_GPIO   GPIOA
 
#define PWM_SERVO_4_PIN   GPIO3
 
#define PWM_SERVO_4_AF   GPIO_AF1
 
#define PWM_SERVO_4_OC   TIM_OC4
 
#define PWM_SERVO_4_OC_BIT   (1<<3)
 
#define PWM_TIM2_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT|PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)
 

Macro Definition Documentation

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

Definition at line 210 of file px4fmu_1.7.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 212 of file px4fmu_1.7.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 211 of file px4fmu_1.7.h.

#define AD1_4_CHANNEL   10

Definition at line 137 of file px4fmu_1.7.h.

#define ADC_4   AD1_4

Definition at line 138 of file px4fmu_1.7.h.

#define ADC_4_GPIO_PIN   GPIO0

Definition at line 140 of file px4fmu_1.7.h.

#define ADC_4_GPIO_PORT   GPIOC

Definition at line 139 of file px4fmu_1.7.h.

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 145 of file px4fmu_1.7.h.

#define AHB_CLK   168000000

Definition at line 8 of file px4fmu_1.7.h.

#define BOARD_ADC_CHANNEL_1   11

Definition at line 102 of file px4fmu_1.7.h.

#define BOARD_ADC_CHANNEL_2   12

Definition at line 103 of file px4fmu_1.7.h.

#define BOARD_ADC_CHANNEL_3   13

Definition at line 104 of file px4fmu_1.7.h.

#define BOARD_ADC_CHANNEL_4   10

Definition at line 105 of file px4fmu_1.7.h.

#define BOARD_PX4FMU

Definition at line 4 of file px4fmu_1.7.h.

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

Definition at line 209 of file px4fmu_1.7.h.

#define DefaultVoltageOfAdc (   adc)    (0.006185*adc)

Definition at line 147 of file px4fmu_1.7.h.

#define EXT_CLK   16000000

Definition at line 7 of file px4fmu_1.7.h.

#define I2C1_GPIO_PORT   GPIOB

Definition at line 153 of file px4fmu_1.7.h.

#define I2C1_GPIO_SCL   GPIO8

Definition at line 154 of file px4fmu_1.7.h.

#define I2C1_GPIO_SDA   GPIO9

Definition at line 155 of file px4fmu_1.7.h.

#define I2C2_GPIO_PORT   GPIOB

Definition at line 157 of file px4fmu_1.7.h.

#define I2C2_GPIO_SCL   GPIO10

Definition at line 158 of file px4fmu_1.7.h.

#define I2C2_GPIO_SDA   GPIO11

Definition at line 159 of file px4fmu_1.7.h.

#define I2C3_GPIO_PORT_SCL   GPIOA

Definition at line 161 of file px4fmu_1.7.h.

#define I2C3_GPIO_PORT_SDA   GPIOC

Definition at line 163 of file px4fmu_1.7.h.

#define I2C3_GPIO_SCL   GPIO8

Definition at line 162 of file px4fmu_1.7.h.

#define I2C3_GPIO_SDA   GPIO9

Definition at line 164 of file px4fmu_1.7.h.

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 22 of file px4fmu_1.7.h.

#define LED_1_GPIO   GPIOB

Definition at line 18 of file px4fmu_1.7.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 21 of file px4fmu_1.7.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 20 of file px4fmu_1.7.h.

#define LED_1_GPIO_PIN   GPIO14

Definition at line 19 of file px4fmu_1.7.h.

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 32 of file px4fmu_1.7.h.

#define LED_2_GPIO   GPIOB

Definition at line 28 of file px4fmu_1.7.h.

#define LED_2_GPIO_OFF   gpio_set

Definition at line 31 of file px4fmu_1.7.h.

#define LED_2_GPIO_ON   gpio_clear

Definition at line 30 of file px4fmu_1.7.h.

#define LED_2_GPIO_PIN   GPIO15

Definition at line 29 of file px4fmu_1.7.h.

#define PPM_CC_IE   TIM_DIER_CC1IE

Definition at line 177 of file px4fmu_1.7.h.

#define PPM_CC_IF   TIM_SR_CC1IF

Definition at line 178 of file px4fmu_1.7.h.

#define PPM_CHANNEL   TIM_IC1

Definition at line 172 of file px4fmu_1.7.h.

#define PPM_GPIO_AF   GPIO_AF1

Definition at line 181 of file px4fmu_1.7.h.

#define PPM_GPIO_PIN   GPIO10

Definition at line 180 of file px4fmu_1.7.h.

#define PPM_GPIO_PORT   GPIOA

Definition at line 179 of file px4fmu_1.7.h.

#define PPM_IRQ   NVIC_TIM1_CC_IRQ

Definition at line 174 of file px4fmu_1.7.h.

#define PPM_IRQ2   NVIC_TIM1_UP_TIM10_IRQ

Definition at line 175 of file px4fmu_1.7.h.

#define PPM_TIMER_INPUT   TIM_IC_IN_TI1

Definition at line 173 of file px4fmu_1.7.h.

#define PWM_SERVO_1   0

Definition at line 227 of file px4fmu_1.7.h.

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 231 of file px4fmu_1.7.h.

#define PWM_SERVO_1_GPIO   GPIOA

Definition at line 229 of file px4fmu_1.7.h.

#define PWM_SERVO_1_OC   TIM_OC1

Definition at line 232 of file px4fmu_1.7.h.

#define PWM_SERVO_1_OC_BIT   (1<<0)

Definition at line 233 of file px4fmu_1.7.h.

#define PWM_SERVO_1_PIN   GPIO0

Definition at line 230 of file px4fmu_1.7.h.

#define PWM_SERVO_1_TIMER   TIM2

Definition at line 228 of file px4fmu_1.7.h.

#define PWM_SERVO_2   1

Definition at line 240 of file px4fmu_1.7.h.

#define PWM_SERVO_2_AF   GPIO_AF1

Definition at line 244 of file px4fmu_1.7.h.

#define PWM_SERVO_2_GPIO   GPIOA

Definition at line 242 of file px4fmu_1.7.h.

#define PWM_SERVO_2_OC   TIM_OC2

Definition at line 245 of file px4fmu_1.7.h.

#define PWM_SERVO_2_OC_BIT   (1<<1)

Definition at line 246 of file px4fmu_1.7.h.

#define PWM_SERVO_2_PIN   GPIO1

Definition at line 243 of file px4fmu_1.7.h.

#define PWM_SERVO_2_TIMER   TIM2

Definition at line 241 of file px4fmu_1.7.h.

#define PWM_SERVO_3_AF   GPIO_AF1

Definition at line 257 of file px4fmu_1.7.h.

#define PWM_SERVO_3_GPIO   GPIOA

Definition at line 255 of file px4fmu_1.7.h.

#define PWM_SERVO_3_IDX   2

Definition at line 253 of file px4fmu_1.7.h.

#define PWM_SERVO_3_OC   TIM_OC3

Definition at line 258 of file px4fmu_1.7.h.

#define PWM_SERVO_3_OC_BIT   (1<<2)

Definition at line 259 of file px4fmu_1.7.h.

#define PWM_SERVO_3_PIN   GPIO2

Definition at line 256 of file px4fmu_1.7.h.

#define PWM_SERVO_3_TIMER   TIM2

Definition at line 254 of file px4fmu_1.7.h.

#define PWM_SERVO_4   3

Definition at line 266 of file px4fmu_1.7.h.

#define PWM_SERVO_4_AF   GPIO_AF1

Definition at line 270 of file px4fmu_1.7.h.

#define PWM_SERVO_4_GPIO   GPIOA

Definition at line 268 of file px4fmu_1.7.h.

#define PWM_SERVO_4_OC   TIM_OC4

Definition at line 271 of file px4fmu_1.7.h.

#define PWM_SERVO_4_OC_BIT   (1<<3)

Definition at line 272 of file px4fmu_1.7.h.

#define PWM_SERVO_4_PIN   GPIO3

Definition at line 269 of file px4fmu_1.7.h.

#define PWM_SERVO_4_TIMER   TIM2

Definition at line 267 of file px4fmu_1.7.h.

Definition at line 278 of file px4fmu_1.7.h.

#define PWM_USE_TIM2   1

Definition at line 215 of file px4fmu_1.7.h.

#define SPEKTRUM_BIND_PIN   GPIO4

Definition at line 189 of file px4fmu_1.7.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOC

Definition at line 190 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_AF   GPIO_AF7

Definition at line 195 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_BANK   GPIOA

Definition at line 193 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_DEV   USART2

Definition at line 198 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_IRQ   NVIC_USART2_IRQ

Definition at line 196 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_ISR   usart2_isr

Definition at line 197 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_PIN   GPIO3

Definition at line 194 of file px4fmu_1.7.h.

#define SPEKTRUM_UART2_RCC   RCC_USART2

Definition at line 192 of file px4fmu_1.7.h.

#define SPI1_GPIO_AF   GPIO_AF5

Definition at line 62 of file px4fmu_1.7.h.

#define SPI1_GPIO_MISO   GPIO6

Definition at line 64 of file px4fmu_1.7.h.

#define SPI1_GPIO_MOSI   GPIO7

Definition at line 66 of file px4fmu_1.7.h.

#define SPI1_GPIO_PORT_MISO   GPIOA

Definition at line 63 of file px4fmu_1.7.h.

#define SPI1_GPIO_PORT_MOSI   GPIOA

Definition at line 65 of file px4fmu_1.7.h.

#define SPI1_GPIO_PORT_SCK   GPIOA

Definition at line 67 of file px4fmu_1.7.h.

#define SPI1_GPIO_SCK   GPIO5

Definition at line 68 of file px4fmu_1.7.h.

#define SPI3_GPIO_AF   GPIO_AF5

Definition at line 71 of file px4fmu_1.7.h.

#define SPI3_GPIO_MISO   GPIO11

Definition at line 73 of file px4fmu_1.7.h.

#define SPI3_GPIO_MOSI   GPIO5

Definition at line 75 of file px4fmu_1.7.h.

#define SPI3_GPIO_PORT_MISO   GPIOC

Definition at line 72 of file px4fmu_1.7.h.

#define SPI3_GPIO_PORT_MOSI   GPIOB

Definition at line 74 of file px4fmu_1.7.h.

#define SPI3_GPIO_PORT_SCK   GPIOC

Definition at line 76 of file px4fmu_1.7.h.

#define SPI3_GPIO_SCK   GPIO10

Definition at line 77 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO14

Definition at line 84 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOC

Definition at line 83 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO15

Definition at line 88 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOC

Definition at line 87 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO0

Definition at line 92 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOB

Definition at line 91 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO4

Definition at line 96 of file px4fmu_1.7.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOA

Definition at line 95 of file px4fmu_1.7.h.

#define UART1_GPIO_AF   GPIO_AF7

Definition at line 39 of file px4fmu_1.7.h.

#define UART1_GPIO_PORT_RX   GPIOB

Definition at line 40 of file px4fmu_1.7.h.

#define UART1_GPIO_PORT_TX   GPIOB

Definition at line 42 of file px4fmu_1.7.h.

#define UART1_GPIO_RX   GPIO7

Definition at line 41 of file px4fmu_1.7.h.

#define UART1_GPIO_TX   GPIO6

Definition at line 43 of file px4fmu_1.7.h.

#define UART2_GPIO_AF   GPIO_AF7

Definition at line 45 of file px4fmu_1.7.h.

#define UART2_GPIO_PORT_RX   GPIOA

Definition at line 46 of file px4fmu_1.7.h.

#define UART2_GPIO_PORT_TX   GPIOA

Definition at line 48 of file px4fmu_1.7.h.

#define UART2_GPIO_RX   GPIO3

Definition at line 47 of file px4fmu_1.7.h.

#define UART2_GPIO_TX   GPIO2

Definition at line 49 of file px4fmu_1.7.h.

#define UART6_GPIO_AF   GPIO_AF8

Definition at line 51 of file px4fmu_1.7.h.

#define UART6_GPIO_PORT_RX   GPIOC

Definition at line 52 of file px4fmu_1.7.h.

#define UART6_GPIO_PORT_TX   GPIOC

Definition at line 54 of file px4fmu_1.7.h.

#define UART6_GPIO_RX   GPIO7

Definition at line 53 of file px4fmu_1.7.h.

#define UART6_GPIO_TX   GPIO6

Definition at line 55 of file px4fmu_1.7.h.

#define USE_AD_TIM4   1

Definition at line 100 of file px4fmu_1.7.h.

#define USE_ADC_4   1

Definition at line 134 of file px4fmu_1.7.h.

#define USE_BARO_BOARD   1

Definition at line 204 of file px4fmu_1.7.h.

#define USE_LED_1   1

Definition at line 16 of file px4fmu_1.7.h.

#define USE_LED_2   1

Definition at line 26 of file px4fmu_1.7.h.

#define USE_PPM_TIM1   1

Definition at line 170 of file px4fmu_1.7.h.

#define USE_PWM1   1

Definition at line 217 of file px4fmu_1.7.h.

#define USE_PWM2   1

Definition at line 218 of file px4fmu_1.7.h.

#define USE_PWM3   1

Definition at line 219 of file px4fmu_1.7.h.

#define USE_PWM4   1

Definition at line 220 of file px4fmu_1.7.h.