Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
booz_1.0.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   25
 
#define USE_LED_2   1
 
#define LED_2_BANK   1
 
#define LED_2_PIN   24
 
#define USE_LED_3   1
 
#define LED_3_BANK   1
 
#define LED_3_PIN   23
 
#define USE_LED_4   1
 
#define LED_4_BANK   1
 
#define LED_4_PIN   31
 
#define USE_LED_5   1
 
#define LED_5_BANK   1
 
#define LED_5_PIN   18
 
#define POWER_SWITCH_LED   5
 
#define USE_LED_6   1
 
#define LED_6_BANK   1
 
#define LED_6_PIN   22
 
#define CAM_SWITCH_LED   6
 
#define PPM_PINSEL   PINSEL1
 
#define PPM_PINSEL_VAL   0x02
 
#define PPM_PINSEL_BIT   24
 
#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   AdcBank1(4)
 
#define ADC_1   AdcBank0(6)
 
#define ADC_2   AdcBank0(7)
 
#define ADC_3   AdcBank1(0)
 
#define ADC_CHANNEL_VSUPPLY   AdcBank0(2)
 
#define USE_AD0
 
#define USE_AD0_2
 
#define DefaultVoltageOfAdc(adc)   (0.0183*adc)
 
#define ADC_CHANNEL_BARO   AdcBank1(2)
 
#define USE_AD1
 
#define USE_AD1_2
 
#define MS2100_SS_PIN   28
 
#define MS2100_SS_IODIR   IO1DIR
 
#define MS2100_SS_IOSET   IO1SET
 
#define MS2100_SS_IOCLR   IO1CLR
 
#define MS2100_RESET_PIN   19
 
#define MS2100_RESET_IODIR   IO1DIR
 
#define MS2100_RESET_IOSET   IO1SET
 
#define MS2100_RESET_IOCLR   IO1CLR
 
#define MS2100_DRDY_PIN   30
 
#define MS2100_DRDY_PINSEL   PINSEL1
 
#define MS2100_DRDY_PINSEL_BIT   28
 
#define MS2100_DRDY_PINSEL_VAL   2
 
#define MS2100_DRDY_EINT   3
 
#define MS2100_DRDY_VIC_IT   VIC_EINT3
 
#define PWM0_PINSEL   PINSEL1
 
#define PWM0_PINSEL_VAL   0x01
 
#define PWM0_PINSEL_BIT   10
 
#define PWM1_PINSEL   PINSEL0
 
#define PWM1_PINSEL_VAL   0x02
 
#define PWM1_PINSEL_BIT   14
 
#define BOARD_HAS_BARO   1
 

Macro Definition Documentation

#define ADC_0   AdcBank1(4)

Definition at line 76 of file booz_1.0.h.

#define ADC_1   AdcBank0(6)

Definition at line 85 of file booz_1.0.h.

#define ADC_2   AdcBank0(7)

Definition at line 94 of file booz_1.0.h.

#define ADC_3   AdcBank1(0)

Definition at line 103 of file booz_1.0.h.

#define ADC_CHANNEL_BARO   AdcBank1(2)

Definition at line 124 of file booz_1.0.h.

Referenced by baro_init().

#define ADC_CHANNEL_VSUPPLY   AdcBank0(2)

Definition at line 114 of file booz_1.0.h.

Referenced by electrical_init().

#define BOARD_HAS_BARO   1

Definition at line 163 of file booz_1.0.h.

#define CAM_SWITCH_LED   6

Definition at line 59 of file booz_1.0.h.

#define CCLK   (FOSC * PLL_MUL)

Definition at line 11 of file booz_1.0.h.

#define DefaultVoltageOfAdc (   adc)    (0.0183*adc)

Definition at line 121 of file booz_1.0.h.

#define FOSC   (12000000)

Definition at line 5 of file booz_1.0.h.

#define LED_1_BANK   1

Definition at line 24 of file booz_1.0.h.

#define LED_1_PIN   25

Definition at line 25 of file booz_1.0.h.

#define LED_2_BANK   1

Definition at line 30 of file booz_1.0.h.

#define LED_2_PIN   24

Definition at line 31 of file booz_1.0.h.

#define LED_3_BANK   1

Definition at line 36 of file booz_1.0.h.

#define LED_3_PIN   23

Definition at line 37 of file booz_1.0.h.

#define LED_4_BANK   1

Definition at line 42 of file booz_1.0.h.

#define LED_4_PIN   31

Definition at line 43 of file booz_1.0.h.

#define LED_5_BANK   1

Definition at line 48 of file booz_1.0.h.

#define LED_5_PIN   18

Definition at line 49 of file booz_1.0.h.

#define LED_6_BANK   1

Definition at line 56 of file booz_1.0.h.

#define LED_6_PIN   22

Definition at line 57 of file booz_1.0.h.

#define MS2100_DRDY_EINT   3

Definition at line 147 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_DRDY_PIN   30

Definition at line 143 of file booz_1.0.h.

#define MS2100_DRDY_PINSEL   PINSEL1

Definition at line 144 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_DRDY_PINSEL_BIT   28

Definition at line 145 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_DRDY_PINSEL_VAL   2

Definition at line 146 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_DRDY_VIC_IT   VIC_EINT3

Definition at line 148 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_RESET_IOCLR   IO1CLR

Definition at line 141 of file booz_1.0.h.

#define MS2100_RESET_IODIR   IO1DIR

Definition at line 139 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_RESET_IOSET   IO1SET

Definition at line 140 of file booz_1.0.h.

#define MS2100_RESET_PIN   19

Definition at line 138 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_SS_IOCLR   IO1CLR

Definition at line 136 of file booz_1.0.h.

#define MS2100_SS_IODIR   IO1DIR

Definition at line 134 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define MS2100_SS_IOSET   IO1SET

Definition at line 135 of file booz_1.0.h.

#define MS2100_SS_PIN   28

Definition at line 133 of file booz_1.0.h.

Referenced by EXTINT_ISR().

#define PBSD_BITS   0x02

Definition at line 14 of file booz_1.0.h.

#define PBSD_VAL   2

Definition at line 15 of file booz_1.0.h.

#define PCLK   (CCLK / PBSD_VAL)

Definition at line 18 of file booz_1.0.h.

Referenced by baro_scp_init(), and main().

#define PLL_MUL   (5)

Definition at line 8 of file booz_1.0.h.

#define POWER_SWITCH_LED   5

Definition at line 51 of file booz_1.0.h.

Referenced by autopilot_init().

#define PPM_CCR_CRF   TCCR_CR2_F

Definition at line 67 of file booz_1.0.h.

Referenced by ppm_arch_init(), and trig_ext_init().

#define PPM_CCR_CRI   TCCR_CR2_I

Definition at line 69 of file booz_1.0.h.

Referenced by ppm_arch_init(), and trig_ext_init().

#define PPM_CCR_CRR   TCCR_CR2_R

Definition at line 68 of file booz_1.0.h.

Referenced by ppm_arch_init(), and trig_ext_init().

#define PPM_CR   T0CR2

Definition at line 70 of file booz_1.0.h.

Referenced by TRIG_ISR().

#define PPM_CRI   TIR_CR2I

Definition at line 66 of file booz_1.0.h.

#define PPM_PINSEL   PINSEL1

Definition at line 63 of file booz_1.0.h.

Referenced by ppm_arch_init(), and trig_ext_init().

#define PPM_PINSEL_BIT   24

Definition at line 65 of file booz_1.0.h.

Referenced by ppm_arch_init(), and trig_ext_init().

#define PPM_PINSEL_VAL   0x02

Definition at line 64 of file booz_1.0.h.

Referenced by ppm_arch_init(), and trig_ext_init().

#define PWM0_PINSEL   PINSEL1

Definition at line 152 of file booz_1.0.h.

Referenced by booz_pwm_init_arch().

#define PWM0_PINSEL_BIT   10

Definition at line 154 of file booz_1.0.h.

Referenced by booz_pwm_init_arch().

#define PWM0_PINSEL_VAL   0x01

Definition at line 153 of file booz_1.0.h.

Referenced by booz_pwm_init_arch().

#define PWM1_PINSEL   PINSEL0

Definition at line 158 of file booz_1.0.h.

Referenced by booz_pwm_init_arch().

#define PWM1_PINSEL_BIT   14

Definition at line 160 of file booz_1.0.h.

Referenced by booz_pwm_init_arch().

#define PWM1_PINSEL_VAL   0x02

Definition at line 159 of file booz_1.0.h.

Referenced by booz_pwm_init_arch().

#define USE_AD0

Definition at line 116 of file booz_1.0.h.

#define USE_AD0_2

Definition at line 118 of file booz_1.0.h.

#define USE_AD1

Definition at line 126 of file booz_1.0.h.

#define USE_AD1_2

Definition at line 128 of file booz_1.0.h.

Referenced by adc_init().

#define USE_LED_1   1

Definition at line 22 of file booz_1.0.h.

#define USE_LED_2   1

Definition at line 28 of file booz_1.0.h.

#define USE_LED_3   1

Definition at line 34 of file booz_1.0.h.

#define USE_LED_4   1

Definition at line 40 of file booz_1.0.h.

#define USE_LED_5   1

Definition at line 46 of file booz_1.0.h.

#define USE_LED_6   1

Definition at line 54 of file booz_1.0.h.