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
lisa_l_1.0.h
Go to the documentation of this file.
1 #ifndef CONFIG_LISA_L_1_0_H
2 #define CONFIG_LISA_L_1_0_H
3 
4 #define BOARD_LISA_L
5 
6 #define AHB_CLK 72000000
7 
8 /* Lisa uses an external clock instead of a crystal */
9 #define HSE_TYPE_EXT_CLK
10 #define STM32_RCC_MODE RCC_HSE_Bypass
11 #define STM32_PLL_MULT RCC_PLLMul_9
12 
13 /* Onboard LEDs */
14 #ifndef USE_LED_1
15 #define USE_LED_1 1
16 #endif
17 #define LED_STP08
18 
19 // FIXME, this is just to make it compile
20 #define POWER_SWITCH_LED 5
21 
22 /* configuration for aspirin - and more generaly IMUs */
23 #define IMU_ACC_DRDY_RCC_GPIO RCC_APB2Periph_GPIOD
24 #define IMU_ACC_DRDY_GPIO GPIOD
25 #define IMU_ACC_DRDY_GPIO_PORTSOURCE GPIO_PortSourceGPIOD
26 
27 
28 /* PA0 - ADC0 */
29 /* allow to define ADC_CHANNEL_VSUPPLY in the airframe file*/
30 #ifndef ADC_CHANNEL_VSUPPLY
31 #define ADC_CHANNEL_VSUPPLY 2
32 #endif
33 #define DefaultVoltageOfAdc(adc) (0.0059*adc)
34 /* Onboard ADCs */
35 #define BOARD_ADC_CHANNEL_1 ADC_Channel_8
36 #define BOARD_ADC_CHANNEL_2 ADC_Channel_9
37 // FIXME - removed for now and used for battery monitoring
38 //#define BOARD_ADC_CHANNEL_3 ADC_Channel_13
39 #define BOARD_ADC_CHANNEL_3 ADC_Channel_0
40 #define BOARD_ADC_CHANNEL_4 ADC_Channel_15
41 
42 #define BOARD_HAS_BARO 1
43 
44 #endif /* CONFIG_LISA_L_1_0_H */