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

Go to the source code of this file.

Macros

#define EXT_CLK   8000000
 
#define AHB_CLK   84000000
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOC
 
#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   GPIOC
 
#define LED_2_GPIO_PIN   GPIO13
 
#define LED_2_GPIO_ON   gpio_clear
 
#define LED_2_GPIO_OFF   gpio_set
 
#define LED_2_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   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 SPEKTRUM_BIND_PIN   GPIO0
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOB
 
#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 RC_POLARITY_GPIO_PORT   GPIOC
 
#define RC_POLARITY_GPIO_PIN   GPIO15
 
#define USE_PPM_TIM3   1
 
#define PPM_CHANNEL   TIM_IC4
 
#define PPM_TIMER_INPUT   TIM_IC_IN_TI4
 
#define PPM_IRQ   NVIC_TIM3_IRQ
 
#define PPM_CC_IE   TIM_DIER_CC4IE
 
#define PPM_CC_IF   TIM_SR_CC4IF
 
#define PPM_GPIO_PORT   GPIOB
 
#define PPM_GPIO_PIN   GPIO1
 
#define PPM_GPIO_AF   GPIO_AF2
 
#define SPI2_GPIO_AF   GPIO_AF5
 
#define SPI2_GPIO_PORT_MISO   GPIOB
 
#define SPI2_GPIO_MISO   GPIO14
 
#define SPI2_GPIO_PORT_MOSI   GPIOB
 
#define SPI2_GPIO_MOSI   GPIO15
 
#define SPI2_GPIO_PORT_SCK   GPIOB
 
#define SPI2_GPIO_SCK   GPIO13
 
#define SPI2_GPIO_PORT_NSS   GPIOB
 
#define SPI2_GPIO_NSS   GPIO12
 
#define SPI_SELECT_SLAVE0_PORT   GPIOB
 
#define SPI_SELECT_SLAVE0_PIN   GPIO12
 
#define I2C1_GPIO_PORT   GPIOB
 
#define I2C1_GPIO_SCL   GPIO6
 
#define I2C1_GPIO_SDA   GPIO7
 
#define I2C3_GPIO_PORT_SCL   GPIOA
 
#define I2C3_GPIO_SCL   GPIO8
 
#define I2C3_GPIO_PORT_SDA   GPIOB
 
#define I2C3_GPIO_SDA   GPIO4
 
#define I2C3_GPIO_SDA_AF   GPIO_AF9
 
#define USE_ADC_1   0
 
#define DefaultVoltageOfAdc(adc)   (0.0045*adc)
 
#define PWM_USE_TIM1   1
 
#define PWM_USE_TIM2   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 ACTUATORS_PWM_NB   6
 
#define PWM_SERVO_1   0
 
#define PWM_SERVO_1_TIMER   TIM1
 
#define PWM_SERVO_1_GPIO   GPIOA
 
#define PWM_SERVO_1_PIN   GPIO10
 
#define PWM_SERVO_1_AF   GPIO_AF1
 
#define PWM_SERVO_1_OC   TIM_OC3
 
#define PWM_SERVO_1_OC_BIT   (1<<2)
 
#define PWM_SERVO_2   1
 
#define PWM_SERVO_2_TIMER   TIM2
 
#define PWM_SERVO_2_GPIO   GPIOB
 
#define PWM_SERVO_2_PIN   GPIO3
 
#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   2
 
#define PWM_SERVO_3_TIMER   TIM4
 
#define PWM_SERVO_3_GPIO   GPIOB
 
#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   TIM4
 
#define PWM_SERVO_4_GPIO   GPIOB
 
#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_TIM1_CHAN_MASK   (PWM_SERVO_1_OC_BIT)
 
#define PWM_TIM2_CHAN_MASK   (PWM_SERVO_2_OC_BIT)
 
#define PWM_TIM4_CHAN_MASK   (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 USE_BARO_BOARD   1
 

Macro Definition Documentation

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

Definition at line 65 of file openpilot_revo_nano.h.

#define ACTUATORS_PWM_NB   6

Definition at line 230 of file openpilot_revo_nano.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 67 of file openpilot_revo_nano.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 66 of file openpilot_revo_nano.h.

#define AHB_CLK   84000000

Definition at line 36 of file openpilot_revo_nano.h.

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

Definition at line 64 of file openpilot_revo_nano.h.

#define DefaultVoltageOfAdc (   adc)    (0.0045*adc)

Definition at line 210 of file openpilot_revo_nano.h.

#define EXT_CLK   8000000

Definition at line 35 of file openpilot_revo_nano.h.

#define I2C1_GPIO_PORT   GPIOB

Definition at line 144 of file openpilot_revo_nano.h.

#define I2C1_GPIO_SCL   GPIO6

Definition at line 145 of file openpilot_revo_nano.h.

#define I2C1_GPIO_SDA   GPIO7

Definition at line 146 of file openpilot_revo_nano.h.

#define I2C3_GPIO_PORT_SCL   GPIOA

Definition at line 149 of file openpilot_revo_nano.h.

#define I2C3_GPIO_PORT_SDA   GPIOB

Definition at line 151 of file openpilot_revo_nano.h.

#define I2C3_GPIO_SCL   GPIO8

Definition at line 150 of file openpilot_revo_nano.h.

#define I2C3_GPIO_SDA   GPIO4

Definition at line 152 of file openpilot_revo_nano.h.

#define I2C3_GPIO_SDA_AF   GPIO_AF9

Definition at line 153 of file openpilot_revo_nano.h.

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 50 of file openpilot_revo_nano.h.

#define LED_1_GPIO   GPIOC

Definition at line 46 of file openpilot_revo_nano.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 49 of file openpilot_revo_nano.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 48 of file openpilot_revo_nano.h.

#define LED_1_GPIO_PIN   GPIO14

Definition at line 47 of file openpilot_revo_nano.h.

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 60 of file openpilot_revo_nano.h.

#define LED_2_GPIO   GPIOC

Definition at line 56 of file openpilot_revo_nano.h.

#define LED_2_GPIO_OFF   gpio_set

Definition at line 59 of file openpilot_revo_nano.h.

#define LED_2_GPIO_ON   gpio_clear

Definition at line 58 of file openpilot_revo_nano.h.

#define LED_2_GPIO_PIN   GPIO13

Definition at line 57 of file openpilot_revo_nano.h.

#define PPM_CC_IE   TIM_DIER_CC4IE

Definition at line 117 of file openpilot_revo_nano.h.

#define PPM_CC_IF   TIM_SR_CC4IF

Definition at line 118 of file openpilot_revo_nano.h.

#define PPM_CHANNEL   TIM_IC4

Definition at line 113 of file openpilot_revo_nano.h.

#define PPM_GPIO_AF   GPIO_AF2

Definition at line 121 of file openpilot_revo_nano.h.

#define PPM_GPIO_PIN   GPIO1

Definition at line 120 of file openpilot_revo_nano.h.

#define PPM_GPIO_PORT   GPIOB

Definition at line 119 of file openpilot_revo_nano.h.

#define PPM_IRQ   NVIC_TIM3_IRQ

Definition at line 115 of file openpilot_revo_nano.h.

#define PPM_TIMER_INPUT   TIM_IC_IN_TI4

Definition at line 114 of file openpilot_revo_nano.h.

#define PWM_SERVO_1   0

Definition at line 235 of file openpilot_revo_nano.h.

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 239 of file openpilot_revo_nano.h.

#define PWM_SERVO_1_GPIO   GPIOA

Definition at line 237 of file openpilot_revo_nano.h.

#define PWM_SERVO_1_OC   TIM_OC3

Definition at line 240 of file openpilot_revo_nano.h.

#define PWM_SERVO_1_OC_BIT   (1<<2)

Definition at line 241 of file openpilot_revo_nano.h.

#define PWM_SERVO_1_PIN   GPIO10

Definition at line 238 of file openpilot_revo_nano.h.

#define PWM_SERVO_1_TIMER   TIM1

Definition at line 236 of file openpilot_revo_nano.h.

#define PWM_SERVO_2   1

Definition at line 247 of file openpilot_revo_nano.h.

#define PWM_SERVO_2_AF   GPIO_AF1

Definition at line 251 of file openpilot_revo_nano.h.

#define PWM_SERVO_2_GPIO   GPIOB

Definition at line 249 of file openpilot_revo_nano.h.

#define PWM_SERVO_2_OC   TIM_OC2

Definition at line 252 of file openpilot_revo_nano.h.

#define PWM_SERVO_2_OC_BIT   (1<<1)

Definition at line 253 of file openpilot_revo_nano.h.

#define PWM_SERVO_2_PIN   GPIO3

Definition at line 250 of file openpilot_revo_nano.h.

#define PWM_SERVO_2_TIMER   TIM2

Definition at line 248 of file openpilot_revo_nano.h.

#define PWM_SERVO_3   2

Definition at line 259 of file openpilot_revo_nano.h.

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 263 of file openpilot_revo_nano.h.

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 261 of file openpilot_revo_nano.h.

#define PWM_SERVO_3_OC   TIM_OC3

Definition at line 264 of file openpilot_revo_nano.h.

#define PWM_SERVO_3_OC_BIT   (1<<2)

Definition at line 265 of file openpilot_revo_nano.h.

#define PWM_SERVO_3_PIN   GPIO8

Definition at line 262 of file openpilot_revo_nano.h.

#define PWM_SERVO_3_TIMER   TIM4

Definition at line 260 of file openpilot_revo_nano.h.

#define PWM_SERVO_4   3

Definition at line 271 of file openpilot_revo_nano.h.

#define PWM_SERVO_4_AF   GPIO_AF2

Definition at line 275 of file openpilot_revo_nano.h.

#define PWM_SERVO_4_GPIO   GPIOB

Definition at line 273 of file openpilot_revo_nano.h.

#define PWM_SERVO_4_OC   TIM_OC4

Definition at line 276 of file openpilot_revo_nano.h.

#define PWM_SERVO_4_OC_BIT   (1<<3)

Definition at line 277 of file openpilot_revo_nano.h.

#define PWM_SERVO_4_PIN   GPIO9

Definition at line 274 of file openpilot_revo_nano.h.

#define PWM_SERVO_4_TIMER   TIM4

Definition at line 272 of file openpilot_revo_nano.h.

#define PWM_SERVO_5   4

Definition at line 283 of file openpilot_revo_nano.h.

#define PWM_SERVO_5_AF   GPIO_AF2

Definition at line 287 of file openpilot_revo_nano.h.

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 285 of file openpilot_revo_nano.h.

#define PWM_SERVO_5_OC   TIM_OC1

Definition at line 288 of file openpilot_revo_nano.h.

#define PWM_SERVO_5_OC_BIT   (1<<0)

Definition at line 289 of file openpilot_revo_nano.h.

#define PWM_SERVO_5_PIN   GPIO0

Definition at line 286 of file openpilot_revo_nano.h.

#define PWM_SERVO_5_TIMER   TIM5

Definition at line 284 of file openpilot_revo_nano.h.

#define PWM_SERVO_6   5

Definition at line 295 of file openpilot_revo_nano.h.

#define PWM_SERVO_6_AF   GPIO_AF2

Definition at line 299 of file openpilot_revo_nano.h.

#define PWM_SERVO_6_GPIO   GPIOA

Definition at line 297 of file openpilot_revo_nano.h.

#define PWM_SERVO_6_OC   TIM_OC2

Definition at line 300 of file openpilot_revo_nano.h.

#define PWM_SERVO_6_OC_BIT   (1<<1)

Definition at line 301 of file openpilot_revo_nano.h.

#define PWM_SERVO_6_PIN   GPIO1

Definition at line 298 of file openpilot_revo_nano.h.

#define PWM_SERVO_6_TIMER   TIM5

Definition at line 296 of file openpilot_revo_nano.h.

#define PWM_TIM1_CHAN_MASK   (PWM_SERVO_1_OC_BIT)

Definition at line 308 of file openpilot_revo_nano.h.

#define PWM_TIM2_CHAN_MASK   (PWM_SERVO_2_OC_BIT)

Definition at line 310 of file openpilot_revo_nano.h.

#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)

Definition at line 312 of file openpilot_revo_nano.h.

#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_5_OC_BIT|PWM_SERVO_6_OC_BIT)

Definition at line 314 of file openpilot_revo_nano.h.

#define PWM_USE_TIM1   1

Definition at line 217 of file openpilot_revo_nano.h.

#define PWM_USE_TIM2   1

Definition at line 218 of file openpilot_revo_nano.h.

#define PWM_USE_TIM4   1

Definition at line 219 of file openpilot_revo_nano.h.

#define PWM_USE_TIM5   1

Definition at line 220 of file openpilot_revo_nano.h.

#define RC_POLARITY_GPIO_PIN   GPIO15

Definition at line 103 of file openpilot_revo_nano.h.

#define RC_POLARITY_GPIO_PORT   GPIOC

Definition at line 102 of file openpilot_revo_nano.h.

#define SPEKTRUM_BIND_PIN   GPIO0

Definition at line 90 of file openpilot_revo_nano.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOB

Definition at line 91 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_AF   GPIO_AF7

Definition at line 96 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_BANK   GPIOA

Definition at line 94 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_DEV   USART2

Definition at line 99 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_IRQ   NVIC_USART2_IRQ

Definition at line 97 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_ISR   usart2_isr

Definition at line 98 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_PIN   GPIO3

Definition at line 95 of file openpilot_revo_nano.h.

#define SPEKTRUM_UART2_RCC   RCC_USART2

Definition at line 93 of file openpilot_revo_nano.h.

#define SPI2_GPIO_AF   GPIO_AF5

Definition at line 126 of file openpilot_revo_nano.h.

#define SPI2_GPIO_MISO   GPIO14

Definition at line 128 of file openpilot_revo_nano.h.

#define SPI2_GPIO_MOSI   GPIO15

Definition at line 130 of file openpilot_revo_nano.h.

#define SPI2_GPIO_NSS   GPIO12

Definition at line 134 of file openpilot_revo_nano.h.

#define SPI2_GPIO_PORT_MISO   GPIOB

Definition at line 127 of file openpilot_revo_nano.h.

#define SPI2_GPIO_PORT_MOSI   GPIOB

Definition at line 129 of file openpilot_revo_nano.h.

#define SPI2_GPIO_PORT_NSS   GPIOB

Definition at line 133 of file openpilot_revo_nano.h.

#define SPI2_GPIO_PORT_SCK   GPIOB

Definition at line 131 of file openpilot_revo_nano.h.

#define SPI2_GPIO_SCK   GPIO13

Definition at line 132 of file openpilot_revo_nano.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO12

Definition at line 138 of file openpilot_revo_nano.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOB

Definition at line 137 of file openpilot_revo_nano.h.

#define UART1_GPIO_AF   GPIO_AF7

Definition at line 72 of file openpilot_revo_nano.h.

#define UART1_GPIO_PORT_RX   GPIOB

Definition at line 73 of file openpilot_revo_nano.h.

#define UART1_GPIO_PORT_TX   GPIOB

Definition at line 75 of file openpilot_revo_nano.h.

#define UART1_GPIO_RX   GPIO7

Definition at line 74 of file openpilot_revo_nano.h.

#define UART1_GPIO_TX   GPIO6

Definition at line 76 of file openpilot_revo_nano.h.

#define UART2_GPIO_AF   GPIO_AF7

Definition at line 79 of file openpilot_revo_nano.h.

#define UART2_GPIO_PORT_RX   GPIOA

Definition at line 80 of file openpilot_revo_nano.h.

#define UART2_GPIO_PORT_TX   GPIOA

Definition at line 82 of file openpilot_revo_nano.h.

#define UART2_GPIO_RX   GPIO3

Definition at line 81 of file openpilot_revo_nano.h.

#define UART2_GPIO_TX   GPIO2

Definition at line 83 of file openpilot_revo_nano.h.

#define USE_ADC_1   0

Definition at line 161 of file openpilot_revo_nano.h.

#define USE_BARO_BOARD   1

Definition at line 319 of file openpilot_revo_nano.h.

#define USE_LED_1   1

Definition at line 44 of file openpilot_revo_nano.h.

#define USE_LED_2   1

Definition at line 54 of file openpilot_revo_nano.h.

#define USE_PPM_TIM3   1

Definition at line 112 of file openpilot_revo_nano.h.

#define USE_PWM1   1

Definition at line 222 of file openpilot_revo_nano.h.

#define USE_PWM2   1

Definition at line 223 of file openpilot_revo_nano.h.

#define USE_PWM3   1

Definition at line 224 of file openpilot_revo_nano.h.

#define USE_PWM4   1

Definition at line 225 of file openpilot_revo_nano.h.

#define USE_PWM5   1

Definition at line 226 of file openpilot_revo_nano.h.

#define USE_PWM6   1

Definition at line 227 of file openpilot_revo_nano.h.