LP-480 work in progress: revo, nano & sparky2 targets ok.
[librepilot.git] / flight / targets / boards / revolution / firmware / inc / pios_config.h
blobead7372078d6ed1e68063bd7fd2574bdfe687880
1 /**
2 ******************************************************************************
3 * @addtogroup OpenPilotSystem OpenPilot System
4 * @{
5 * @addtogroup OpenPilotCore OpenPilot Core
6 * @{
7 * @file pios_config.h
8 * @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2015-2016.
9 * The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010-2013.
10 * @brief PiOS configuration header, the compile time config file for the PIOS.
11 * Defines which PiOS libraries and features are included in the firmware.
12 * @see The GNU Public License (GPL) Version 3
13 *****************************************************************************/
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 3 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful, but
21 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 * for more details.
25 * You should have received a copy of the GNU General Public License along
26 * with this program; if not, write to the Free Software Foundation, Inc.,
27 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #ifndef PIOS_CONFIG_H
31 #define PIOS_CONFIG_H
34 * Below is a complete list of PIOS configurable options.
35 * Please do not remove or rearrange them. Only comment out
36 * unused options in the list. See main pios.h header for more
37 * details.
40 /* #define PIOS_INCLUDE_DEBUG_CONSOLE */
41 /* #define DEBUG_LEVEL 0 */
42 /* #define PIOS_ENABLE_DEBUG_PINS */
44 /* PIOS FreeRTOS support */
45 #define PIOS_INCLUDE_FREERTOS
47 /* PIOS Callback Scheduler support */
48 #define PIOS_INCLUDE_CALLBACKSCHEDULER
50 /* PIOS bootloader helper */
51 #define PIOS_INCLUDE_BL_HELPER
52 /* #define PIOS_INCLUDE_BL_HELPER_WRITE_SUPPORT */
54 /* PIOS system functions */
55 #define PIOS_INCLUDE_DELAY
56 #define PIOS_INCLUDE_INITCALL
57 #define PIOS_INCLUDE_SYS
58 #define PIOS_INCLUDE_TASK_MONITOR
60 #define PIOS_INCLUDE_INSTRUMENTATION
61 #define PIOS_INSTRUMENTATION_MAX_COUNTERS 10
63 /* PIOS hardware peripherals */
64 #define PIOS_INCLUDE_IRQ
65 #define PIOS_INCLUDE_RTC
66 #define PIOS_INCLUDE_TIM
67 #define PIOS_INCLUDE_USART
68 #define PIOS_INCLUDE_ADC
69 #define PIOS_INCLUDE_I2C
70 #define PIOS_INCLUDE_SPI
71 #define PIOS_INCLUDE_GPIO
72 #define PIOS_INCLUDE_EXTI
73 #define PIOS_INCLUDE_WDG
75 /* PIOS USB functions */
76 #define PIOS_INCLUDE_USB
77 #define PIOS_INCLUDE_USB_HID
78 #define PIOS_INCLUDE_USB_CDC
79 /* #define PIOS_INCLUDE_USB_RCTX */
81 /* PIOS sensor interfaces */
82 /* #define PIOS_INCLUDE_ADXL345 */
83 /* #define PIOS_INCLUDE_BMA180 */
84 /* #define PIOS_INCLUDE_L3GD20 */
85 #define PIOS_INCLUDE_MPU6000
86 #define PIOS_MPU6000_ACCEL
87 /* #define PIOS_INCLUDE_HMC5843 */
88 #define PIOS_INCLUDE_HMC5X83
89 #define PIOS_INCLUDE_HMC5X83_INTERNAL
90 #define PIOS_HMC5X83_HAS_GPIOS
91 /* #define PIOS_INCLUDE_BMP085 */
92 #define PIOS_INCLUDE_MS5611
93 #define PIOS_INCLUDE_MPXV
94 #define PIOS_INCLUDE_ETASV3
95 #define PIOS_INCLUDE_MS4525DO
96 /* #define PIOS_INCLUDE_HCSR04 */
98 #define PIOS_SENSOR_RATE 500.0f
100 #define PIOS_INCLUDE_WS2811
102 /* PIOS receiver drivers */
103 #define PIOS_INCLUDE_PWM
104 #define PIOS_INCLUDE_PPM
105 /* #define PIOS_INCLUDE_PPM_FLEXI */
106 #define PIOS_INCLUDE_DSM
107 #define PIOS_INCLUDE_SBUS
108 #define PIOS_INCLUDE_SRXL
109 #define PIOS_INCLUDE_HOTT
110 #define PIOS_INCLUDE_EXBUS
111 #define PIOS_INCLUDE_IBUS
112 #define PIOS_INCLUDE_GCSRCVR
113 #define PIOS_INCLUDE_OPLINKRCVR
114 #define PIOS_INCLUDE_OPENLRS_RCVR
116 /* PIOS abstract receiver interface */
117 #define PIOS_INCLUDE_RCVR
119 /* PIOS common peripherals */
120 #define PIOS_INCLUDE_LED
121 #define PIOS_INCLUDE_IAP
122 #define PIOS_INCLUDE_SERVO
123 #define PIOS_INCLUDE_HOTT_BRIDGE
124 /* #define PIOS_INCLUDE_I2C_ESC */
125 /* #define PIOS_INCLUDE_OVERO */
126 /* #define PIOS_OVERO_SPI */
127 /* #define PIOS_INCLUDE_SDCARD */
128 /* #define LOG_FILENAME "startup.log" */
129 #define PIOS_INCLUDE_FLASH
130 #define PIOS_INCLUDE_FLASH_INTERNAL
131 #define PIOS_INCLUDE_FLASH_LOGFS_SETTINGS
132 #define FLASH_FREERTOS
133 /* #define PIOS_INCLUDE_FLASH_EEPROM */
135 #define PIOS_INCLUDE_DEBUGLOG
137 /* PIOS radio modules */
138 #define PIOS_INCLUDE_RFM22B
139 #define PIOS_INCLUDE_RFM22B_COM
140 #define PIOS_INCLUDE_OPENLRS
141 /* #define PIOS_INCLUDE_PPM_OUT */
142 /* #define PIOS_RFM22B_DEBUG_ON_TELEM */
144 /* PIOS misc peripherals */
145 /* #define PIOS_INCLUDE_VIDEO */
146 /* #define PIOS_INCLUDE_WAVE */
147 /* #define PIOS_INCLUDE_UDP */
149 /* PIOS abstract comms interface with options */
150 #define PIOS_INCLUDE_COM
151 /* #define PIOS_INCLUDE_COM_MSG */
152 /* #define PIOS_INCLUDE_TELEMETRY_RF */
153 #define PIOS_INCLUDE_COM_TELEM
154 #define PIOS_INCLUDE_COM_FLEXI
155 /* #define PIOS_INCLUDE_COM_AUX */
156 #define PIOS_TELEM_PRIORITY_QUEUE
157 #define PIOS_INCLUDE_GPS
158 /* #define PIOS_GPS_MINIMAL */
159 #define PIOS_INCLUDE_GPS_NMEA_PARSER
160 #define PIOS_INCLUDE_GPS_UBX_PARSER
161 #define PIOS_INCLUDE_GPS_DJI_PARSER
162 #define PIOS_GPS_SETS_HOMELOCATION
164 /* Stabilization options */
165 #define PIOS_QUATERNION_STABILIZATION
167 /* Performance counters */
168 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 8379692
170 /* Alarm Thresholds */
171 #define HEAP_LIMIT_WARNING 1000
172 #define HEAP_LIMIT_CRITICAL 500
173 #define IRQSTACK_LIMIT_WARNING 150
174 #define IRQSTACK_LIMIT_CRITICAL 80
175 #define CPULOAD_LIMIT_WARNING 80
176 #define CPULOAD_LIMIT_CRITICAL 95
178 /* Task stack sizes */
179 /* #define PIOS_ACTUATOR_STACK_SIZE 1020 */
180 /* #define PIOS_MANUAL_STACK_SIZE 800 */
181 #define PIOS_SYSTEM_STACK_SIZE 1536
182 /* #define PIOS_STABILIZATION_STACK_SIZE 524 */
183 /* #define PIOS_TELEM_STACK_SIZE 500 */
184 /* #define PIOS_EVENTDISPATCHER_STACK_SIZE 130 */
186 /* This can't be too high to stop eventdispatcher thread overflowing */
187 #define PIOS_EVENTDISAPTCHER_QUEUE 10
189 /* Revolution series */
190 #define REVOLUTION
192 #endif /* PIOS_CONFIG_H */
195 * @}
196 * @}