Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lisa_m_1.0.h
Go to the documentation of this file.
1#ifndef CONFIG_LISA_M_1_0_H
2#define CONFIG_LISA_M_1_0_H
3
5
6#define BOARD_LISA_M
7
8/* Lisa/M has a 12MHz external clock and 72MHz internal. */
9#define EXT_CLK 12000000
10#define AHB_CLK 72000000
11
12/* Onboard LEDs */
13/* red */
14#ifndef USE_LED_1
15#define USE_LED_1 1
16#endif
17#define LED_1_GPIO GPIOB
18#define LED_1_GPIO_PIN GPIO4
19#define LED_1_GPIO_ON gpio_clear
20#define LED_1_GPIO_OFF gpio_set
21#define LED_1_AFIO_REMAP { \
22 rcc_periph_clock_enable(RCC_AFIO); \
23 AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_FULL_SWJ_NO_JNTRST; \
24 }
25
26/* blue */
27#ifndef USE_LED_2
28#define USE_LED_2 1
29#endif
30#define LED_2_GPIO GPIOC
31#define LED_2_GPIO_PIN GPIO5
32#define LED_2_GPIO_ON gpio_clear
33#define LED_2_GPIO_OFF gpio_set
34#define LED_2_AFIO_REMAP ((void)0)
35
36/* blue */
37#ifndef USE_LED_3
38#define USE_LED_3 1
39#endif
40#define LED_3_GPIO GPIOC
41#define LED_3_GPIO_PIN GPIO2
42#define LED_3_GPIO_ON gpio_clear
43#define LED_3_GPIO_OFF gpio_set
44#define LED_3_AFIO_REMAP ((void)0)
45
46// GPIO pins
47#ifndef USE_LED_4
48#define USE_LED_4 1
49#endif
50#define LED_4_GPIO GPIOC
51#define LED_4_GPIO_PIN GPIO12
52#define LED_4_GPIO_ON gpio_clear
53#define LED_4_GPIO_OFF gpio_set
54#define LED_4_AFIO_REMAP ((void)0)
55
56#ifndef USE_LED_5
57#define USE_LED_5 1
58#endif
59#define LED_5_GPIO GPIOC
60#define LED_5_GPIO_PIN GPIO10
61#define LED_5_GPIO_ON gpio_clear
62#define LED_5_GPIO_OFF gpio_set
63#define LED_5_AFIO_REMAP ((void)0)
64
65/* PB1, DRDY on EXT SPI connector*/
66#define LED_BODY_GPIO GPIOB
67#define LED_BODY_GPIO_PIN GPIO1
68#define LED_BODY_GPIO_ON gpio_set
69#define LED_BODY_GPIO_OFF gpio_clear
70#define LED_BODY_AFIO_REMAP ((void)0)
71
72/*
73 * Spektrum
74 */
75/* The line that is pulled low at power up to initiate the bind process */
76#define SPEKTRUM_BIND_PIN GPIO3
77#define SPEKTRUM_BIND_PIN_PORT GPIOC
78
79/* Default actuators driver */
80#define DEFAULT_ACTUATORS "modules/actuators/actuators_pwm.h"
81#define ActuatorDefaultSet(_x,_y) ActuatorPwmSet(_x,_y)
82#define ActuatorsDefaultInit() ActuatorsPwmInit()
83#define ActuatorsDefaultCommit() ActuatorsPwmCommit()
84
85
86#define DefaultVoltageOfAdc(adc) (0.00485*adc)
87
88
89/* by default enable onboard baro */
90#ifndef USE_BARO_BOARD
91#define USE_BARO_BOARD 1
92#endif
93
94#endif /* CONFIG_LISA_M_1_0_H */