Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
naze32_common.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOARD_NAZE32
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOB
 
#define LED_1_GPIO_PIN   GPIO4
 
#define LED_1_GPIO_ON   gpio_clear
 
#define LED_1_GPIO_OFF   gpio_set
 
#define LED_1_AFIO_REMAP
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOB
 
#define LED_2_GPIO_PIN   GPIO3
 
#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   0
 
#define UART1_GPIO_PORT_RX   GPIO_BANK_USART1_RX
 
#define UART1_GPIO_RX   GPIO_USART1_RX
 
#define UART1_GPIO_PORT_TX   GPIO_BANK_USART1_TX
 
#define UART1_GPIO_TX   GPIO_USART1_TX
 
#define UART2_GPIO_AF   0
 
#define UART2_GPIO_PORT_RX   GPIO_BANK_USART2_RX
 
#define UART2_GPIO_RX   GPIO_USART2_RX
 
#define UART2_GPIO_PORT_TX   GPIO_BANK_USART2_TX
 
#define UART2_GPIO_TX   GPIO_USART2_TX
 
#define SPEKTRUM_BIND_PIN   GPIO1
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOA
 
#define SPEKTRUM_UART1_RCC   RCC_USART1
 
#define SPEKTRUM_UART1_BANK   GPIO_BANK_USART1_RX
 
#define SPEKTRUM_UART1_PIN   GPIO_USART1_RX
 
#define SPEKTRUM_UART1_AF   0
 
#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ
 
#define SPEKTRUM_UART1_ISR   usart1_isr
 
#define SPEKTRUM_UART1_DEV   USART1
 
#define SPEKTRUM_UART2_RCC   RCC_USART2
 
#define SPEKTRUM_UART2_BANK   GPIO_BANK_USART2_RX
 
#define SPEKTRUM_UART2_PIN   GPIO_USART2_RX
 
#define SPEKTRUM_UART2_AF   0
 
#define SPEKTRUM_UART2_IRQ   NVIC_USART2_IRQ
 
#define SPEKTRUM_UART2_ISR   usart2_isr
 
#define SPEKTRUM_UART2_DEV   USART2
 
#define PPM_CONFIG   1
 
#define USE_PPM_TIM2   1
 
#define PPM_CHANNEL   TIM_IC1
 
#define PPM_TIMER_INPUT   TIM_IC_IN_TI1
 
#define PPM_IRQ   NVIC_TIM2_IRQ
 
#define PPM_CC_IE   TIM_DIER_CC1IE
 
#define PPM_CC_IF   TIM_SR_CC1IF
 
#define PPM_GPIO_PORT   GPIOA
 
#define PPM_GPIO_PIN   GPIO0
 
#define PPM_GPIO_AF   0
 
#define USE_AD_TIM1   1
 
#define USE_ADC_4   1
 
#define AD1_4_CHANNEL   4
 
#define ADC_4   AD1_4
 
#define ADC_4_GPIO_PORT   GPIOA
 
#define ADC_4_GPIO_PIN   GPIO4
 
#define ADC_CHANNEL_VSUPPLY   ADC_4
 
#define DefaultVoltageOfAdc(adc)   (0.008862*adc)
 
#define USE_BARO_BOARD   1
 
#define I2C2_GPIO_PORT   GPIOB
 
#define I2C2_GPIO_SCL   GPIO10
 
#define I2C2_GPIO_SDA   GPIO11
 
#define ACTUATORS_PWM_NB   4
 
#define PWM_USE_TIM1   0
 
#define USE_PWM1   0
 
#define USE_PWM2   0
 
#define PWM_SERVO_3   0
 
#define PWM_SERVO_4   1
 
#define PWM_SERVO_5   2
 
#define PWM_SERVO_6   3
 
#define PWM_USE_TIM4   1
 
#define USE_PWM3   1
 
#define USE_PWM4   1
 
#define USE_PWM5   1
 
#define USE_PWM6   1
 
#define PWM_SERVO_1_OC_BIT   0
 
#define PWM_SERVO_2_OC_BIT   0
 
#define PWM_SERVO_3_TIMER   TIM4
 
#define PWM_SERVO_3_GPIO   GPIOB
 
#define PWM_SERVO_3_PIN   GPIO6
 
#define PWM_SERVO_3_AF   0
 
#define PWM_SERVO_3_OC   TIM_OC1
 
#define PWM_SERVO_3_OC_BIT   (1<<0)
 
#define PWM_SERVO_4_TIMER   TIM4
 
#define PWM_SERVO_4_GPIO   GPIOB
 
#define PWM_SERVO_4_PIN   GPIO7
 
#define PWM_SERVO_4_AF   0
 
#define PWM_SERVO_4_OC   TIM_OC2
 
#define PWM_SERVO_4_OC_BIT   (1<<1)
 
#define PWM_SERVO_5_TIMER   TIM4
 
#define PWM_SERVO_5_GPIO   GPIOB
 
#define PWM_SERVO_5_PIN   GPIO8
 
#define PWM_SERVO_5_AF   0
 
#define PWM_SERVO_5_OC   TIM_OC3
 
#define PWM_SERVO_5_OC_BIT   (1<<2)
 
#define PWM_SERVO_6_TIMER   TIM4
 
#define PWM_SERVO_6_GPIO   GPIOB
 
#define PWM_SERVO_6_PIN   GPIO9
 
#define PWM_SERVO_6_AF   0
 
#define PWM_SERVO_6_OC   TIM_OC4
 
#define PWM_SERVO_6_OC_BIT   (1<<3)
 
#define PWM_TIM1_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|PWM_SERVO_5_OC_BIT|PWM_SERVO_6_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 299 of file naze32_common.h.

#define ACTUATORS_PWM_NB   4

Definition at line 206 of file naze32_common.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 301 of file naze32_common.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 300 of file naze32_common.h.

#define AD1_4_CHANNEL   4

Definition at line 142 of file naze32_common.h.

#define ADC_4   AD1_4

Definition at line 143 of file naze32_common.h.

#define ADC_4_GPIO_PIN   GPIO4

Definition at line 145 of file naze32_common.h.

#define ADC_4_GPIO_PORT   GPIOA

Definition at line 144 of file naze32_common.h.

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 150 of file naze32_common.h.

#define BOARD_NAZE32

Definition at line 4 of file naze32_common.h.

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

Definition at line 298 of file naze32_common.h.

#define DefaultVoltageOfAdc (   adc)    (0.008862*adc)

Definition at line 154 of file naze32_common.h.

#define I2C2_GPIO_PORT   GPIOB

Definition at line 166 of file naze32_common.h.

#define I2C2_GPIO_SCL   GPIO10

Definition at line 167 of file naze32_common.h.

#define I2C2_GPIO_SDA   GPIO11

Definition at line 168 of file naze32_common.h.

#define LED_1_AFIO_REMAP
Value:
{ \
rcc_periph_clock_enable(RCC_AFIO); \
AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON; \
}

Definition at line 19 of file naze32_common.h.

#define LED_1_GPIO   GPIOB

Definition at line 15 of file naze32_common.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 18 of file naze32_common.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 17 of file naze32_common.h.

#define LED_1_GPIO_PIN   GPIO4

Definition at line 16 of file naze32_common.h.

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 32 of file naze32_common.h.

#define LED_2_GPIO   GPIOB

Definition at line 28 of file naze32_common.h.

#define LED_2_GPIO_OFF   gpio_set

Definition at line 31 of file naze32_common.h.

#define LED_2_GPIO_ON   gpio_clear

Definition at line 30 of file naze32_common.h.

#define LED_2_GPIO_PIN   GPIO3

Definition at line 29 of file naze32_common.h.

#define PPM_CC_IE   TIM_DIER_CC1IE

Definition at line 96 of file naze32_common.h.

#define PPM_CC_IF   TIM_SR_CC1IF

Definition at line 97 of file naze32_common.h.

#define PPM_CHANNEL   TIM_IC1

Definition at line 92 of file naze32_common.h.

#define PPM_CONFIG   1

Definition at line 86 of file naze32_common.h.

#define PPM_GPIO_AF   0

Definition at line 100 of file naze32_common.h.

#define PPM_GPIO_PIN   GPIO0

Definition at line 99 of file naze32_common.h.

#define PPM_GPIO_PORT   GPIOA

Definition at line 98 of file naze32_common.h.

#define PPM_IRQ   NVIC_TIM2_IRQ

Definition at line 94 of file naze32_common.h.

#define PPM_TIMER_INPUT   TIM_IC_IN_TI1

Definition at line 93 of file naze32_common.h.

#define PWM_SERVO_1_OC_BIT   0

Definition at line 233 of file naze32_common.h.

#define PWM_SERVO_2_OC_BIT   0

Definition at line 244 of file naze32_common.h.

#define PWM_SERVO_3   0

Definition at line 211 of file naze32_common.h.

#define PWM_SERVO_3_AF   0

Definition at line 251 of file naze32_common.h.

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 249 of file naze32_common.h.

#define PWM_SERVO_3_OC   TIM_OC1

Definition at line 252 of file naze32_common.h.

#define PWM_SERVO_3_OC_BIT   (1<<0)

Definition at line 253 of file naze32_common.h.

#define PWM_SERVO_3_PIN   GPIO6

Definition at line 250 of file naze32_common.h.

#define PWM_SERVO_3_TIMER   TIM4

Definition at line 248 of file naze32_common.h.

#define PWM_SERVO_4   1

Definition at line 212 of file naze32_common.h.

#define PWM_SERVO_4_AF   0

Definition at line 262 of file naze32_common.h.

#define PWM_SERVO_4_GPIO   GPIOB

Definition at line 260 of file naze32_common.h.

#define PWM_SERVO_4_OC   TIM_OC2

Definition at line 263 of file naze32_common.h.

#define PWM_SERVO_4_OC_BIT   (1<<1)

Definition at line 264 of file naze32_common.h.

#define PWM_SERVO_4_PIN   GPIO7

Definition at line 261 of file naze32_common.h.

#define PWM_SERVO_4_TIMER   TIM4

Definition at line 259 of file naze32_common.h.

#define PWM_SERVO_5   2

Definition at line 213 of file naze32_common.h.

#define PWM_SERVO_5_AF   0

Definition at line 273 of file naze32_common.h.

#define PWM_SERVO_5_GPIO   GPIOB

Definition at line 271 of file naze32_common.h.

#define PWM_SERVO_5_OC   TIM_OC3

Definition at line 274 of file naze32_common.h.

#define PWM_SERVO_5_OC_BIT   (1<<2)

Definition at line 275 of file naze32_common.h.

#define PWM_SERVO_5_PIN   GPIO8

Definition at line 272 of file naze32_common.h.

#define PWM_SERVO_5_TIMER   TIM4

Definition at line 270 of file naze32_common.h.

#define PWM_SERVO_6   3

Definition at line 214 of file naze32_common.h.

#define PWM_SERVO_6_AF   0

Definition at line 284 of file naze32_common.h.

#define PWM_SERVO_6_GPIO   GPIOB

Definition at line 282 of file naze32_common.h.

#define PWM_SERVO_6_OC   TIM_OC4

Definition at line 285 of file naze32_common.h.

#define PWM_SERVO_6_OC_BIT   (1<<3)

Definition at line 286 of file naze32_common.h.

#define PWM_SERVO_6_PIN   GPIO9

Definition at line 283 of file naze32_common.h.

#define PWM_SERVO_6_TIMER   TIM4

Definition at line 281 of file naze32_common.h.

#define PWM_TIM1_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT)

Definition at line 292 of file naze32_common.h.

Definition at line 294 of file naze32_common.h.

#define PWM_USE_TIM1   0

Definition at line 208 of file naze32_common.h.

#define PWM_USE_TIM4   1

Definition at line 219 of file naze32_common.h.

#define SPEKTRUM_BIND_PIN   GPIO1

Definition at line 58 of file naze32_common.h.

#define SPEKTRUM_BIND_PIN_PORT   GPIOA

Definition at line 59 of file naze32_common.h.

#define SPEKTRUM_UART1_AF   0

Definition at line 64 of file naze32_common.h.

#define SPEKTRUM_UART1_BANK   GPIO_BANK_USART1_RX

Definition at line 62 of file naze32_common.h.

#define SPEKTRUM_UART1_DEV   USART1

Definition at line 67 of file naze32_common.h.

#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ

Definition at line 65 of file naze32_common.h.

#define SPEKTRUM_UART1_ISR   usart1_isr

Definition at line 66 of file naze32_common.h.

#define SPEKTRUM_UART1_PIN   GPIO_USART1_RX

Definition at line 63 of file naze32_common.h.

#define SPEKTRUM_UART1_RCC   RCC_USART1

Definition at line 61 of file naze32_common.h.

#define SPEKTRUM_UART2_AF   0

Definition at line 72 of file naze32_common.h.

#define SPEKTRUM_UART2_BANK   GPIO_BANK_USART2_RX

Definition at line 70 of file naze32_common.h.

#define SPEKTRUM_UART2_DEV   USART2

Definition at line 75 of file naze32_common.h.

#define SPEKTRUM_UART2_IRQ   NVIC_USART2_IRQ

Definition at line 73 of file naze32_common.h.

#define SPEKTRUM_UART2_ISR   usart2_isr

Definition at line 74 of file naze32_common.h.

#define SPEKTRUM_UART2_PIN   GPIO_USART2_RX

Definition at line 71 of file naze32_common.h.

#define SPEKTRUM_UART2_RCC   RCC_USART2

Definition at line 69 of file naze32_common.h.

#define UART1_GPIO_AF   0

Definition at line 40 of file naze32_common.h.

#define UART1_GPIO_PORT_RX   GPIO_BANK_USART1_RX

Definition at line 41 of file naze32_common.h.

#define UART1_GPIO_PORT_TX   GPIO_BANK_USART1_TX

Definition at line 43 of file naze32_common.h.

#define UART1_GPIO_RX   GPIO_USART1_RX

Definition at line 42 of file naze32_common.h.

#define UART1_GPIO_TX   GPIO_USART1_TX

Definition at line 44 of file naze32_common.h.

#define UART2_GPIO_AF   0

Definition at line 47 of file naze32_common.h.

#define UART2_GPIO_PORT_RX   GPIO_BANK_USART2_RX

Definition at line 48 of file naze32_common.h.

#define UART2_GPIO_PORT_TX   GPIO_BANK_USART2_TX

Definition at line 50 of file naze32_common.h.

#define UART2_GPIO_RX   GPIO_USART2_RX

Definition at line 49 of file naze32_common.h.

#define UART2_GPIO_TX   GPIO_USART2_TX

Definition at line 51 of file naze32_common.h.

#define USE_AD_TIM1   1

Definition at line 106 of file naze32_common.h.

#define USE_ADC_4   1

Definition at line 139 of file naze32_common.h.

#define USE_BARO_BOARD   1

Definition at line 159 of file naze32_common.h.

#define USE_LED_1   1

Definition at line 13 of file naze32_common.h.

#define USE_LED_2   1

Definition at line 26 of file naze32_common.h.

#define USE_PPM_TIM2   1

Definition at line 91 of file naze32_common.h.

#define USE_PWM1   0

Definition at line 209 of file naze32_common.h.

#define USE_PWM2   0

Definition at line 210 of file naze32_common.h.

#define USE_PWM3   1

Definition at line 220 of file naze32_common.h.

#define USE_PWM4   1

Definition at line 221 of file naze32_common.h.

#define USE_PWM5   1

Definition at line 222 of file naze32_common.h.

#define USE_PWM6   1

Definition at line 223 of file naze32_common.h.