Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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 POWER_SWITCH_GPIO   GPIOB,GPIO18
 
#define CAM_SWITCH_GPIO   GPIOB,GPIO22
 
#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 SPI_SELECT_SLAVE0_PORT   0
 
#define SPI_SELECT_SLAVE0_PIN   20
 
#define SPI_SELECT_SLAVE0_PINSEL   PINSEL1
 
#define SPI_SELECT_SLAVE0_PINSEL_BIT   8
 
#define SPI_SELECT_SLAVE0_PINSEL_VAL   0
 
#define SPI_SELECT_SLAVE1_PORT   1
 
#define SPI_SELECT_SLAVE1_PIN   28
 
#define SPI_SELECT_SLAVE1_PINSEL   PINSEL2
 
#define SPI_SELECT_SLAVE1_PINSEL_BIT   2
 
#define SPI_SELECT_SLAVE1_PINSEL_VAL   0
 
#define MAX1168_EOC_PIN   16
 
#define MAX1168_EOC_PINSEL   PINSEL1
 
#define MAX1168_EOC_PINSEL_BIT   0
 
#define MAX1168_EOC_PINSEL_VAL   1
 
#define MAX1168_EOC_EINT   0
 
#define MAX1168_EOC_VIC_IT   VIC_EINT0
 
#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 USE_BARO_BOARD   1
 

Macro Definition Documentation

◆ ADC_0

#define ADC_0   AdcBank1(4)

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

◆ ADC_1

#define ADC_1   AdcBank0(6)

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

◆ ADC_2

#define ADC_2   AdcBank0(7)

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

◆ ADC_3

#define ADC_3   AdcBank1(0)

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

◆ ADC_CHANNEL_BARO

#define ADC_CHANNEL_BARO   AdcBank1(2)

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

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   AdcBank0(2)

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

◆ CAM_SWITCH_GPIO

#define CAM_SWITCH_GPIO   GPIOB,GPIO22

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

◆ CCLK

#define CCLK   (FOSC * PLL_MUL)

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

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    (0.0183*adc)

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

◆ FOSC

#define FOSC   (12000000)

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

◆ LED_1_BANK

#define LED_1_BANK   1

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

◆ LED_1_PIN

#define LED_1_PIN   25

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

◆ LED_2_BANK

#define LED_2_BANK   1

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

◆ LED_2_PIN

#define LED_2_PIN   24

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

◆ LED_3_BANK

#define LED_3_BANK   1

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

◆ LED_3_PIN

#define LED_3_PIN   23

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

◆ LED_4_BANK

#define LED_4_BANK   1

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

◆ LED_4_PIN

#define LED_4_PIN   31

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

◆ MAX1168_EOC_EINT

#define MAX1168_EOC_EINT   0

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

◆ MAX1168_EOC_PIN

#define MAX1168_EOC_PIN   16

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

◆ MAX1168_EOC_PINSEL

#define MAX1168_EOC_PINSEL   PINSEL1

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

◆ MAX1168_EOC_PINSEL_BIT

#define MAX1168_EOC_PINSEL_BIT   0

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

◆ MAX1168_EOC_PINSEL_VAL

#define MAX1168_EOC_PINSEL_VAL   1

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

◆ MAX1168_EOC_VIC_IT

#define MAX1168_EOC_VIC_IT   VIC_EINT0

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

◆ MS2100_DRDY_EINT

#define MS2100_DRDY_EINT   3

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

◆ MS2100_DRDY_PIN

#define MS2100_DRDY_PIN   30

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

◆ MS2100_DRDY_PINSEL

#define MS2100_DRDY_PINSEL   PINSEL1

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

◆ MS2100_DRDY_PINSEL_BIT

#define MS2100_DRDY_PINSEL_BIT   28

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

◆ MS2100_DRDY_PINSEL_VAL

#define MS2100_DRDY_PINSEL_VAL   2

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

◆ MS2100_DRDY_VIC_IT

#define MS2100_DRDY_VIC_IT   VIC_EINT3

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

◆ MS2100_RESET_IOCLR

#define MS2100_RESET_IOCLR   IO1CLR

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

◆ MS2100_RESET_IODIR

#define MS2100_RESET_IODIR   IO1DIR

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

◆ MS2100_RESET_IOSET

#define MS2100_RESET_IOSET   IO1SET

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

◆ MS2100_RESET_PIN

#define MS2100_RESET_PIN   19

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

◆ PBSD_BITS

#define PBSD_BITS   0x02

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

◆ PBSD_VAL

#define PBSD_VAL   2

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

◆ PCLK

#define PCLK   (CCLK / PBSD_VAL)

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

◆ PLL_MUL

#define PLL_MUL   (5)

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

◆ POWER_SWITCH_GPIO

#define POWER_SWITCH_GPIO   GPIOB,GPIO18

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

◆ PPM_CCR_CRF

#define PPM_CCR_CRF   TCCR_CR2_F

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

◆ PPM_CCR_CRI

#define PPM_CCR_CRI   TCCR_CR2_I

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

◆ PPM_CCR_CRR

#define PPM_CCR_CRR   TCCR_CR2_R

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

◆ PPM_CR

#define PPM_CR   T0CR2

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

◆ PPM_CRI

#define PPM_CRI   TIR_CR2I

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

◆ PPM_PINSEL

#define PPM_PINSEL   PINSEL1

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

◆ PPM_PINSEL_BIT

#define PPM_PINSEL_BIT   24

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

◆ PPM_PINSEL_VAL

#define PPM_PINSEL_VAL   0x02

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

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   20

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

◆ SPI_SELECT_SLAVE0_PINSEL

#define SPI_SELECT_SLAVE0_PINSEL   PINSEL1

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

◆ SPI_SELECT_SLAVE0_PINSEL_BIT

#define SPI_SELECT_SLAVE0_PINSEL_BIT   8

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

◆ SPI_SELECT_SLAVE0_PINSEL_VAL

#define SPI_SELECT_SLAVE0_PINSEL_VAL   0

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

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   0

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

◆ SPI_SELECT_SLAVE1_PIN

#define SPI_SELECT_SLAVE1_PIN   28

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

◆ SPI_SELECT_SLAVE1_PINSEL

#define SPI_SELECT_SLAVE1_PINSEL   PINSEL2

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

◆ SPI_SELECT_SLAVE1_PINSEL_BIT

#define SPI_SELECT_SLAVE1_PINSEL_BIT   2

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

◆ SPI_SELECT_SLAVE1_PINSEL_VAL

#define SPI_SELECT_SLAVE1_PINSEL_VAL   0

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

◆ SPI_SELECT_SLAVE1_PORT

#define SPI_SELECT_SLAVE1_PORT   1

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

◆ USE_AD0

#define USE_AD0

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

◆ USE_AD0_2

#define USE_AD0_2

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

◆ USE_AD1

#define USE_AD1

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

◆ USE_AD1_2

#define USE_AD1_2

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

◆ USE_BARO_BOARD

#define USE_BARO_BOARD   1

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

◆ USE_LED_1

#define USE_LED_1   1

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

◆ USE_LED_2

#define USE_LED_2   1

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

◆ USE_LED_3

#define USE_LED_3   1

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

◆ USE_LED_4

#define USE_LED_4   1

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