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
cjmcu.h File Reference

Go to the source code of this file.

Macros

#define BOARD_CJMCU
 
#define EXT_CLK   8000000
 
#define AHB_CLK   72000000
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOC
 
#define LED_1_GPIO_PIN   GPIO13
 
#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   GPIO14
 
#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   GPIOC
 
#define LED_3_GPIO_PIN   GPIO15
 
#define LED_3_GPIO_ON   gpio_clear
 
#define LED_3_GPIO_OFF   gpio_set
 
#define LED_3_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 USE_ADC_1   1
 
#define AD1_1_CHANNEL   2
 
#define ADC_1   AD1_1
 
#define ADC_1_GPIO_PORT   GPIOA
 
#define ADC_1_GPIO_PIN   GPIO2
 
#define ADC_CHANNEL_VSUPPLY   ADC_1
 
#define DefaultVoltageOfAdc(adc)   (0.0049*adc)
 
#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 UART3_GPIO_AF   0
 
#define UART3_GPIO_PORT_RX   GPIO_BANK_USART3_RX
 
#define UART3_GPIO_RX   GPIO_USART3_RX
 
#define UART3_GPIO_PORT_TX   GPIO_BANK_USART3_TX
 
#define UART3_GPIO_TX   GPIO_USART3_TX
 
#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 I2C1_GPIO_PORT   GPIOB
 
#define I2C1_GPIO_SCL   GPIO6
 
#define I2C1_GPIO_SDA   GPIO7
 
#define I2C2_GPIO_PORT   GPIOB
 
#define I2C2_GPIO_SCL   GPIO10
 
#define I2C2_GPIO_SDA   GPIO11
 
#define PWM_USE_TIM4   1
 
#define PWM_USE_TIM3   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   TIM4
 
#define PWM_SERVO_1_GPIO   GPIOB
 
#define PWM_SERVO_1_PIN   GPIO8
 
#define PWM_SERVO_1_AF   0
 
#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   TIM4
 
#define PWM_SERVO_2_GPIO   GPIOB
 
#define PWM_SERVO_2_PIN   GPIO9
 
#define PWM_SERVO_2_AF   0
 
#define PWM_SERVO_2_OC   TIM_OC4
 
#define PWM_SERVO_2_OC_BIT   (1<<3)
 
#define PWM_SERVO_3   2
 
#define PWM_SERVO_3_TIMER   TIM3
 
#define PWM_SERVO_3_GPIO   GPIOB
 
#define PWM_SERVO_3_PIN   GPIO0
 
#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   TIM3
 
#define PWM_SERVO_4_GPIO   GPIOB
 
#define PWM_SERVO_4_PIN   GPIO1
 
#define PWM_SERVO_4_AF   0
 
#define PWM_SERVO_4_OC   TIM_OC4
 
#define PWM_SERVO_4_OC_BIT   (1<<3)
 
#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT)
 
#define PWM_TIM3_CHAN_MASK   (PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)
 

Macro Definition Documentation

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

Definition at line 48 of file cjmcu.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 50 of file cjmcu.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 49 of file cjmcu.h.

#define AD1_1_CHANNEL   2

Definition at line 62 of file cjmcu.h.

Referenced by adc_init().

#define ADC_1   AD1_1

Definition at line 63 of file cjmcu.h.

#define ADC_1_GPIO_PIN   GPIO2

Definition at line 65 of file cjmcu.h.

Referenced by adc_init().

#define ADC_1_GPIO_PORT   GPIOA

Definition at line 64 of file cjmcu.h.

Referenced by adc_init().

#define ADC_CHANNEL_VSUPPLY   ADC_1

Definition at line 70 of file cjmcu.h.

#define AHB_CLK   72000000

Definition at line 8 of file cjmcu.h.

#define BOARD_CJMCU

Definition at line 4 of file cjmcu.h.

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

Definition at line 47 of file cjmcu.h.

#define DefaultVoltageOfAdc (   adc)    (0.0049*adc)

Definition at line 74 of file cjmcu.h.

#define EXT_CLK   8000000

Definition at line 7 of file cjmcu.h.

#define I2C1_GPIO_PORT   GPIOB

Definition at line 187 of file cjmcu.h.

#define I2C1_GPIO_SCL   GPIO6

Definition at line 188 of file cjmcu.h.

#define I2C1_GPIO_SDA   GPIO7

Definition at line 189 of file cjmcu.h.

#define I2C2_GPIO_PORT   GPIOB

Definition at line 192 of file cjmcu.h.

#define I2C2_GPIO_SCL   GPIO10

Definition at line 193 of file cjmcu.h.

#define I2C2_GPIO_SDA   GPIO11

Definition at line 194 of file cjmcu.h.

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 22 of file cjmcu.h.

#define LED_1_GPIO   GPIOC

Definition at line 18 of file cjmcu.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 21 of file cjmcu.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 20 of file cjmcu.h.

#define LED_1_GPIO_PIN   GPIO13

Definition at line 19 of file cjmcu.h.

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 32 of file cjmcu.h.

#define LED_2_GPIO   GPIOC

Definition at line 28 of file cjmcu.h.

#define LED_2_GPIO_OFF   gpio_set

Definition at line 31 of file cjmcu.h.

#define LED_2_GPIO_ON   gpio_clear

Definition at line 30 of file cjmcu.h.

#define LED_2_GPIO_PIN   GPIO14

Definition at line 29 of file cjmcu.h.

#define LED_3_AFIO_REMAP   ((void)0)

Definition at line 42 of file cjmcu.h.

#define LED_3_GPIO   GPIOC

Definition at line 38 of file cjmcu.h.

#define LED_3_GPIO_OFF   gpio_set

Definition at line 41 of file cjmcu.h.

#define LED_3_GPIO_ON   gpio_clear

Definition at line 40 of file cjmcu.h.

#define LED_3_GPIO_PIN   GPIO15

Definition at line 39 of file cjmcu.h.

#define PPM_CC_IE   TIM_DIER_CC1IE

Definition at line 128 of file cjmcu.h.

#define PPM_CC_IF   TIM_SR_CC1IF

Definition at line 129 of file cjmcu.h.

#define PPM_CHANNEL   TIM_IC1

Definition at line 124 of file cjmcu.h.

#define PPM_CONFIG   1

Definition at line 117 of file cjmcu.h.

#define PPM_GPIO_AF   0

Definition at line 132 of file cjmcu.h.

#define PPM_GPIO_PIN   GPIO0

Definition at line 131 of file cjmcu.h.

#define PPM_GPIO_PORT   GPIOA

Definition at line 130 of file cjmcu.h.

#define PPM_IRQ   NVIC_TIM2_IRQ

Definition at line 126 of file cjmcu.h.

#define PPM_TIMER_INPUT   TIM_IC_IN_TI1

Definition at line 125 of file cjmcu.h.

#define PWM_SERVO_1   0

Definition at line 210 of file cjmcu.h.

#define PWM_SERVO_1_AF   0

Definition at line 214 of file cjmcu.h.

#define PWM_SERVO_1_GPIO   GPIOB

Definition at line 212 of file cjmcu.h.

#define PWM_SERVO_1_OC   TIM_OC3

Definition at line 215 of file cjmcu.h.

#define PWM_SERVO_1_OC_BIT   (1<<2)

Definition at line 216 of file cjmcu.h.

#define PWM_SERVO_1_PIN   GPIO8

Definition at line 213 of file cjmcu.h.

#define PWM_SERVO_1_TIMER   TIM4

Definition at line 211 of file cjmcu.h.

#define PWM_SERVO_2   1

Definition at line 222 of file cjmcu.h.

#define PWM_SERVO_2_AF   0

Definition at line 226 of file cjmcu.h.

#define PWM_SERVO_2_GPIO   GPIOB

Definition at line 224 of file cjmcu.h.

#define PWM_SERVO_2_OC   TIM_OC4

Definition at line 227 of file cjmcu.h.

#define PWM_SERVO_2_OC_BIT   (1<<3)

Definition at line 228 of file cjmcu.h.

#define PWM_SERVO_2_PIN   GPIO9

Definition at line 225 of file cjmcu.h.

#define PWM_SERVO_2_TIMER   TIM4

Definition at line 223 of file cjmcu.h.

#define PWM_SERVO_3   2

Definition at line 234 of file cjmcu.h.

#define PWM_SERVO_3_AF   0

Definition at line 238 of file cjmcu.h.

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 236 of file cjmcu.h.

#define PWM_SERVO_3_OC   TIM_OC3

Definition at line 239 of file cjmcu.h.

#define PWM_SERVO_3_OC_BIT   (1<<2)

Definition at line 240 of file cjmcu.h.

#define PWM_SERVO_3_PIN   GPIO0

Definition at line 237 of file cjmcu.h.

#define PWM_SERVO_3_TIMER   TIM3

Definition at line 235 of file cjmcu.h.

#define PWM_SERVO_4   3

Definition at line 246 of file cjmcu.h.

#define PWM_SERVO_4_AF   0

Definition at line 250 of file cjmcu.h.

#define PWM_SERVO_4_GPIO   GPIOB

Definition at line 248 of file cjmcu.h.

#define PWM_SERVO_4_OC   TIM_OC4

Definition at line 251 of file cjmcu.h.

#define PWM_SERVO_4_OC_BIT   (1<<3)

Definition at line 252 of file cjmcu.h.

#define PWM_SERVO_4_PIN   GPIO1

Definition at line 249 of file cjmcu.h.

#define PWM_SERVO_4_TIMER   TIM3

Definition at line 247 of file cjmcu.h.

#define PWM_TIM3_CHAN_MASK   (PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)

Definition at line 262 of file cjmcu.h.

#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT)

Definition at line 260 of file cjmcu.h.

#define PWM_USE_TIM3   1

Definition at line 201 of file cjmcu.h.

#define PWM_USE_TIM4   1

Definition at line 200 of file cjmcu.h.

#define UART1_GPIO_AF   0

Definition at line 83 of file cjmcu.h.

#define UART1_GPIO_PORT_RX   GPIO_BANK_USART1_RX

Definition at line 84 of file cjmcu.h.

#define UART1_GPIO_PORT_TX   GPIO_BANK_USART1_TX

Definition at line 86 of file cjmcu.h.

#define UART1_GPIO_RX   GPIO_USART1_RX

Definition at line 85 of file cjmcu.h.

#define UART1_GPIO_TX   GPIO_USART1_TX

Definition at line 87 of file cjmcu.h.

#define UART3_GPIO_AF   0

Definition at line 90 of file cjmcu.h.

#define UART3_GPIO_PORT_RX   GPIO_BANK_USART3_RX

Definition at line 91 of file cjmcu.h.

#define UART3_GPIO_PORT_TX   GPIO_BANK_USART3_TX

Definition at line 93 of file cjmcu.h.

#define UART3_GPIO_RX   GPIO_USART3_RX

Definition at line 92 of file cjmcu.h.

#define UART3_GPIO_TX   GPIO_USART3_TX

Definition at line 94 of file cjmcu.h.

#define USE_AD_TIM1   1

Definition at line 138 of file cjmcu.h.

#define USE_ADC_1   1

Definition at line 59 of file cjmcu.h.

#define USE_LED_1   1

Definition at line 16 of file cjmcu.h.

#define USE_LED_2   1

Definition at line 26 of file cjmcu.h.

#define USE_LED_3   1

Definition at line 36 of file cjmcu.h.

#define USE_PPM_TIM2   1

Definition at line 123 of file cjmcu.h.

#define USE_PWM1   1

Definition at line 203 of file cjmcu.h.

#define USE_PWM2   1

Definition at line 204 of file cjmcu.h.

#define USE_PWM3   1

Definition at line 205 of file cjmcu.h.

#define USE_PWM4   1

Definition at line 206 of file cjmcu.h.