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
logom_2.6.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 USE_USB_HIGH_PCLK
 
#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   16
 
#define USE_LED_2   1
 
#define LED_2_BANK   0
 
#define LED_2_PIN   2
 
#define USE_LED_3   1
 
#define LED_3_BANK   0
 
#define LED_3_PIN   11
 
#define USE_LED_4   1
 
#define LED_4_BANK   1
 
#define LED_4_PIN   17
 
#define POWER_SWITCH_LED   4
 
#define USE_LED_5   1
 
#define LED_5_BANK   1
 
#define LED_5_PIN   18
 
#define CAM_SWITCH_LED   5
 
#define USE_LED_6   1
 
#define LED_6_BANK   1
 
#define LED_6_PIN   19
 
#define GPS_RESET   6
 
#define Configure_GPS_RESET_Pin()   LED_INIT(GPS_RESET)
 
#define Set_GPS_RESET_Pin_LOW()   LED_ON(GPS_RESET)
 
#define Open_GPS_RESET_Pin()   ClearBit(LED_DIR(GPS_RESET), LED_PIN(GPS_RESET))
 
#define SERVO_CLOCK_PIN   29
 
#define SERVO_CLOCK_PINSEL   PINSEL0
 
#define SERVO_CLOCK_PINSEL_VAL   0x02
 
#define SERVO_CLOCK_PINSEL_BIT   10
 
#define SERVO_RESET_PIN   20
 
#define PPM_PINSEL   PINSEL0
 
#define PPM_PINSEL_VAL   0x02
 
#define PPM_PINSEL_BIT   12
 
#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   AdcBank0(4)
 
#define ADC_4   AdcBank1(7)
 
#define ADC_5   AdcBank1(6)
 
#define ADC_6   AdcBank1(2)
 
#define ADC_7   AdcBank1(2)
 
#define ADC_CHANNEL_VSUPPLY   AdcBank1(4)
 
#define USE_AD1
 
#define USE_AD1_4
 
#define DefaultVoltageOfAdc(adc)   (0.068505859375*adc)
 
#define SPI_SELECT_SLAVE0_PORT   0
 
#define SPI_SELECT_SLAVE0_PIN   20
 
#define SPI1_DRDY_PINSEL   PINSEL1
 
#define SPI1_DRDY_PINSEL_BIT   0
 
#define SPI1_DRDY_PINSEL_VAL   1
 
#define SPI1_DRDY_EINT   0
 
#define SPI1_DRDY_VIC_IT   VIC_EINT0
 
#define SPI_CHANNEL   0
 
#define LOG_STOP_KEY   3
 

Macro Definition Documentation

#define ADC_0   AdcBank0(3)

Definition at line 104 of file logom_2.6.h.

#define ADC_1   AdcBank0(2)

Definition at line 112 of file logom_2.6.h.

#define ADC_2   AdcBank0(1)

Definition at line 121 of file logom_2.6.h.

#define ADC_3   AdcBank0(4)

Definition at line 129 of file logom_2.6.h.

#define ADC_4   AdcBank1(7)

Definition at line 137 of file logom_2.6.h.

#define ADC_5   AdcBank1(6)

Definition at line 145 of file logom_2.6.h.

#define ADC_6   AdcBank1(2)

Definition at line 153 of file logom_2.6.h.

#define ADC_7   AdcBank1(2)

Definition at line 161 of file logom_2.6.h.

#define ADC_CHANNEL_VSUPPLY   AdcBank1(4)

Definition at line 171 of file logom_2.6.h.

#define CAM_SWITCH_LED   5

Definition at line 70 of file logom_2.6.h.

#define CCLK   (FOSC * PLL_MUL)

Definition at line 19 of file logom_2.6.h.

#define Configure_GPS_RESET_Pin ( )    LED_INIT(GPS_RESET)

Definition at line 80 of file logom_2.6.h.

#define DefaultVoltageOfAdc (   adc)    (0.068505859375*adc)

Definition at line 179 of file logom_2.6.h.

#define FOSC   (12000000)

Definition at line 13 of file logom_2.6.h.

#define GPS_RESET   6

Definition at line 78 of file logom_2.6.h.

#define LED_1_BANK   1

Definition at line 41 of file logom_2.6.h.

#define LED_1_PIN   16

Definition at line 42 of file logom_2.6.h.

#define LED_2_BANK   0

Definition at line 47 of file logom_2.6.h.

#define LED_2_PIN   2

Definition at line 48 of file logom_2.6.h.

#define LED_3_BANK   0

Definition at line 53 of file logom_2.6.h.

#define LED_3_PIN   11

Definition at line 54 of file logom_2.6.h.

#define LED_4_BANK   1

Definition at line 59 of file logom_2.6.h.

#define LED_4_PIN   17

Definition at line 60 of file logom_2.6.h.

#define LED_5_BANK   1

Definition at line 67 of file logom_2.6.h.

#define LED_5_PIN   18

Definition at line 68 of file logom_2.6.h.

#define LED_6_BANK   1

Definition at line 75 of file logom_2.6.h.

#define LED_6_PIN   19

Definition at line 76 of file logom_2.6.h.

#define LOG_STOP_KEY   3

Definition at line 194 of file logom_2.6.h.

#define Open_GPS_RESET_Pin ( )    ClearBit(LED_DIR(GPS_RESET), LED_PIN(GPS_RESET))

Definition at line 82 of file logom_2.6.h.

#define PBSD_BITS   0x02

Definition at line 27 of file logom_2.6.h.

#define PBSD_VAL   2

Definition at line 28 of file logom_2.6.h.

#define PCLK   (CCLK / PBSD_VAL)

Definition at line 36 of file logom_2.6.h.

#define PLL_MUL   (5)

Definition at line 16 of file logom_2.6.h.

#define POWER_SWITCH_LED   4

Definition at line 62 of file logom_2.6.h.

#define PPM_CCR_CRF   TCCR_CR2_F

Definition at line 97 of file logom_2.6.h.

#define PPM_CCR_CRI   TCCR_CR2_I

Definition at line 99 of file logom_2.6.h.

#define PPM_CCR_CRR   TCCR_CR2_R

Definition at line 98 of file logom_2.6.h.

#define PPM_CR   T0CR2

Definition at line 100 of file logom_2.6.h.

#define PPM_CRI   TIR_CR2I

Definition at line 96 of file logom_2.6.h.

#define PPM_PINSEL   PINSEL0

Definition at line 93 of file logom_2.6.h.

#define PPM_PINSEL_BIT   12

Definition at line 95 of file logom_2.6.h.

#define PPM_PINSEL_VAL   0x02

Definition at line 94 of file logom_2.6.h.

#define SERVO_CLOCK_PIN   29

Definition at line 85 of file logom_2.6.h.

#define SERVO_CLOCK_PINSEL   PINSEL0

Definition at line 86 of file logom_2.6.h.

#define SERVO_CLOCK_PINSEL_BIT   10

Definition at line 88 of file logom_2.6.h.

#define SERVO_CLOCK_PINSEL_VAL   0x02

Definition at line 87 of file logom_2.6.h.

#define SERVO_RESET_PIN   20

Definition at line 90 of file logom_2.6.h.

#define Set_GPS_RESET_Pin_LOW ( )    LED_ON(GPS_RESET)

Definition at line 81 of file logom_2.6.h.

#define SPI1_DRDY_EINT   0

Definition at line 187 of file logom_2.6.h.

Referenced by baro_scp_init().

#define SPI1_DRDY_PINSEL   PINSEL1

Definition at line 184 of file logom_2.6.h.

Referenced by baro_scp_init().

#define SPI1_DRDY_PINSEL_BIT   0

Definition at line 185 of file logom_2.6.h.

Referenced by baro_scp_init().

#define SPI1_DRDY_PINSEL_VAL   1

Definition at line 186 of file logom_2.6.h.

Referenced by baro_scp_init().

#define SPI1_DRDY_VIC_IT   VIC_EINT0

Definition at line 188 of file logom_2.6.h.

Referenced by baro_scp_init().

#define SPI_CHANNEL   0

Definition at line 191 of file logom_2.6.h.

#define SPI_SELECT_SLAVE0_PIN   20

Definition at line 182 of file logom_2.6.h.

#define SPI_SELECT_SLAVE0_PORT   0

Definition at line 181 of file logom_2.6.h.

#define USE_AD1

Definition at line 173 of file logom_2.6.h.

#define USE_AD1_4

Definition at line 175 of file logom_2.6.h.

Referenced by adc_init().

#define USE_LED_1   1

Definition at line 39 of file logom_2.6.h.

#define USE_LED_2   1

Definition at line 45 of file logom_2.6.h.

#define USE_LED_3   1

Definition at line 51 of file logom_2.6.h.

#define USE_LED_4   1

Definition at line 57 of file logom_2.6.h.

#define USE_LED_5   1

Definition at line 65 of file logom_2.6.h.

#define USE_LED_6   1

Definition at line 73 of file logom_2.6.h.

#define USE_USB_HIGH_PCLK

Definition at line 22 of file logom_2.6.h.