Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 USE_LED_1   1
 
#define LED_1_BANK   1
 
#define LED_1_PIN   18
 
#define USE_LED_2   1
 
#define LED_2_BANK   1
 
#define LED_2_PIN   19
 
#define POWER_SWITCH_LED   1
 
#define POWER_SWITCH_2_LED   2
 
#define USE_LED_3   1
 
#define LED_3_BANK   1
 
#define LED_3_PIN   20
 
#define USE_LED_4   1
 
#define LED_4_BANK   1
 
#define LED_4_PIN   25
 
#define BUZZER_LED   3
 
#define CAM_SWITCH_LED   4
 
#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

#define ADC_0   AdcBank0(3)

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

#define ADC_1   AdcBank0(2)

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

#define ADC_2   AdcBank0(1)

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

#define ADC_3   AdcBank1(2)

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

#define ADC_4   AdcBank1(3)

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

#define ADC_5   AdcBank1(4)

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

#define ADC_CHANNEL_VSUPPLY   AdcBank1(6)

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

#define BUZZER_LED   3

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

#define CAM_SWITCH_LED   4

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

#define CCLK   (FOSC * PLL_MUL)

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

#define DefaultVoltageOfAdc (   adc)    (0.032362123*adc)

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

#define FOSC   (12000000)

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

#define LED_1_BANK   1

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

#define LED_1_PIN   18

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

#define LED_2_BANK   1

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

#define LED_2_PIN   19

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

#define LED_3_BANK   1

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

#define LED_3_PIN   20

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

#define LED_4_BANK   1

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

#define LED_4_PIN   25

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

#define PBSD_BITS   0x02

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

#define PBSD_VAL   2

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

#define PCLK   (CCLK / PBSD_VAL)

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

#define PLL_MUL   (5)

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

#define POWER_SWITCH_2_LED   2

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

#define POWER_SWITCH_LED   1

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

#define PPM_CCR_CRF   TCCR_CR2_F

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

#define PPM_CCR_CRI   TCCR_CR2_I

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

#define PPM_CCR_CRR   TCCR_CR2_R

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

#define PPM_CR   T0CR2

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

#define PPM_CRI   TIR_CR2I

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

#define PPM_PINSEL   PINSEL1

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

#define PPM_PINSEL_BIT   0

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

#define PPM_PINSEL_VAL   0x03

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

#define SERVO_CLOCK_PIN   22

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

Referenced by actuators_init().

#define SERVO_CLOCK_PINSEL   PINSEL1

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

Referenced by actuators_init().

#define SERVO_CLOCK_PINSEL_BIT   12

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

Referenced by actuators_init().

#define SERVO_CLOCK_PINSEL_VAL   0x03

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

Referenced by actuators_init().

#define SERVO_RESET_PIN   24

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

Referenced by actuators_init().

#define USE_AD1

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

#define USE_AD1_6

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

#define USE_LED_1   1

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

#define USE_LED_2   1

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

#define USE_LED_3   1

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

#define USE_LED_4   1

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