Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
hb_1.1.h File Reference

Go to the source code of this file.

Macros

#define FOSC   (12000000)
 
#define PLL_MUL   (5)
 
#define CCLK   (FOSC * PLL_MUL)
 
#define PBSD_BITS   0x02
 
#define PBSD_VAL   2
 
#define PCLK   (CCLK / PBSD_VAL)
 
#define POWER_SWITCH_GPIO   GPIOB,GPIO18
 
#define POWER_SWITCH_2_GPIO   GPIOB,GPIO19
 
#define BUZZER_GPIO   GPIOB,GPIO20
 
#define CAM_SWITCH_GPIO   GPIOB,GPIO25
 
#define SERVO_CLOCK_PIN   22
 
#define SERVO_CLOCK_PINSEL   PINSEL1
 
#define SERVO_CLOCK_PINSEL_VAL   0x03
 
#define SERVO_CLOCK_PINSEL_BIT   12
 
#define SERVO_RESET_PIN   24
 
#define PPM_PINSEL   PINSEL1
 
#define PPM_PINSEL_VAL   0x03
 
#define PPM_PINSEL_BIT   0
 
#define PPM_CRI   TIR_CR2I
 
#define PPM_CCR_CRF   TCCR_CR2_F
 
#define PPM_CCR_CRR   TCCR_CR2_R
 
#define PPM_CCR_CRI   TCCR_CR2_I
 
#define PPM_CR   T0CR2
 
#define ADC_0   AdcBank0(3)
 
#define ADC_1   AdcBank0(2)
 
#define ADC_2   AdcBank0(1)
 
#define ADC_3   AdcBank1(2)
 
#define ADC_4   AdcBank1(3)
 
#define ADC_5   AdcBank1(4)
 
#define ADC_CHANNEL_VSUPPLY   AdcBank1(6)
 
#define USE_AD1
 
#define USE_AD1_6
 
#define DefaultVoltageOfAdc(adc)   (0.032362123*adc)
 

Macro Definition Documentation

◆ ADC_0

#define ADC_0   AdcBank0(3)

Definition at line 50 of file hb_1.1.h.

◆ ADC_1

#define ADC_1   AdcBank0(2)

Definition at line 59 of file hb_1.1.h.

◆ ADC_2

#define ADC_2   AdcBank0(1)

Definition at line 68 of file hb_1.1.h.

◆ ADC_3

#define ADC_3   AdcBank1(2)

Definition at line 78 of file hb_1.1.h.

◆ ADC_4

#define ADC_4   AdcBank1(3)

Definition at line 87 of file hb_1.1.h.

◆ ADC_5

#define ADC_5   AdcBank1(4)

Definition at line 96 of file hb_1.1.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   AdcBank1(6)

Definition at line 106 of file hb_1.1.h.

◆ BUZZER_GPIO

#define BUZZER_GPIO   GPIOB,GPIO20

Definition at line 25 of file hb_1.1.h.

◆ CAM_SWITCH_GPIO

#define CAM_SWITCH_GPIO   GPIOB,GPIO25

Definition at line 26 of file hb_1.1.h.

◆ CCLK

#define CCLK   (FOSC * PLL_MUL)

Definition at line 11 of file hb_1.1.h.

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    (0.032362123*adc)

Definition at line 114 of file hb_1.1.h.

◆ FOSC

#define FOSC   (12000000)

Definition at line 5 of file hb_1.1.h.

◆ PBSD_BITS

#define PBSD_BITS   0x02

Definition at line 14 of file hb_1.1.h.

◆ PBSD_VAL

#define PBSD_VAL   2

Definition at line 15 of file hb_1.1.h.

◆ PCLK

#define PCLK   (CCLK / PBSD_VAL)

Definition at line 18 of file hb_1.1.h.

◆ PLL_MUL

#define PLL_MUL   (5)

Definition at line 8 of file hb_1.1.h.

◆ POWER_SWITCH_2_GPIO

#define POWER_SWITCH_2_GPIO   GPIOB,GPIO19

Definition at line 22 of file hb_1.1.h.

◆ POWER_SWITCH_GPIO

#define POWER_SWITCH_GPIO   GPIOB,GPIO18

Definition at line 21 of file hb_1.1.h.

◆ PPM_CCR_CRF

#define PPM_CCR_CRF   TCCR_CR2_F

Definition at line 41 of file hb_1.1.h.

◆ PPM_CCR_CRI

#define PPM_CCR_CRI   TCCR_CR2_I

Definition at line 43 of file hb_1.1.h.

◆ PPM_CCR_CRR

#define PPM_CCR_CRR   TCCR_CR2_R

Definition at line 42 of file hb_1.1.h.

◆ PPM_CR

#define PPM_CR   T0CR2

Definition at line 44 of file hb_1.1.h.

◆ PPM_CRI

#define PPM_CRI   TIR_CR2I

Definition at line 40 of file hb_1.1.h.

◆ PPM_PINSEL

#define PPM_PINSEL   PINSEL1

Definition at line 37 of file hb_1.1.h.

◆ PPM_PINSEL_BIT

#define PPM_PINSEL_BIT   0

Definition at line 39 of file hb_1.1.h.

◆ PPM_PINSEL_VAL

#define PPM_PINSEL_VAL   0x03

Definition at line 38 of file hb_1.1.h.

◆ SERVO_CLOCK_PIN

#define SERVO_CLOCK_PIN   22

Definition at line 29 of file hb_1.1.h.

◆ SERVO_CLOCK_PINSEL

#define SERVO_CLOCK_PINSEL   PINSEL1

Definition at line 30 of file hb_1.1.h.

◆ SERVO_CLOCK_PINSEL_BIT

#define SERVO_CLOCK_PINSEL_BIT   12

Definition at line 32 of file hb_1.1.h.

◆ SERVO_CLOCK_PINSEL_VAL

#define SERVO_CLOCK_PINSEL_VAL   0x03

Definition at line 31 of file hb_1.1.h.

◆ SERVO_RESET_PIN

#define SERVO_RESET_PIN   24

Definition at line 34 of file hb_1.1.h.

◆ USE_AD1

#define USE_AD1

Definition at line 108 of file hb_1.1.h.

◆ USE_AD1_6

#define USE_AD1_6

Definition at line 110 of file hb_1.1.h.