OP-1857 - Enable PPM On Flexi Port
[librepilot.git] / flight / targets / boards / coptercontrol / firmware / inc / pios_config.h
bloba371b908f66875723af4b48d01cf096342b32ac1
1 /**
2 ******************************************************************************
3 * @addtogroup OpenPilotSystem OpenPilot System
4 * @{
5 * @addtogroup OpenPilotCore OpenPilot Core
6 * @{
7 * @file pios_config.h
8 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010-2013.
9 * @brief PiOS configuration header, the compile time config file for the PIOS.
10 * Defines which PiOS libraries and features are included in the firmware.
11 * @see The GNU Public License (GPL) Version 3
12 *****************************************************************************/
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, write to the Free Software Foundation, Inc.,
26 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #ifndef PIOS_CONFIG_H
30 #define PIOS_CONFIG_H
33 * Below is a complete list of PIOS configurable options.
34 * Please do not remove or rearrange them. Only comment out
35 * unused options in the list. See main pios.h header for more
36 * details.
39 /* #define PIOS_INCLUDE_DEBUG_CONSOLE */
40 /* #define DEBUG_LEVEL 0 */
41 /* #define PIOS_ENABLE_DEBUG_PINS */
43 /* PIOS FreeRTOS support */
44 #define PIOS_INCLUDE_FREERTOS
47 /* PIOS CallbackScheduler 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
59 // #define PIOS_INCLUDE_INSTRUMENTATION
60 #define PIOS_INSTRUMENTATION_MAX_COUNTERS 5
62 /* PIOS hardware peripherals */
63 #define PIOS_INCLUDE_IRQ
64 #define PIOS_INCLUDE_RTC
65 #define PIOS_INCLUDE_TIM
66 #define PIOS_INCLUDE_USART
67 #define PIOS_INCLUDE_ADC
68 /* #define PIOS_INCLUDE_I2C */
69 #define PIOS_INCLUDE_SPI
70 #define PIOS_INCLUDE_GPIO
71 #define PIOS_INCLUDE_EXTI
72 #define PIOS_INCLUDE_WDG
74 /* PIOS USB functions */
75 #define PIOS_INCLUDE_USB
76 #define PIOS_INCLUDE_USB_HID
77 #define PIOS_INCLUDE_USB_CDC
78 #define PIOS_INCLUDE_USB_RCTX
80 /* PIOS sensor interfaces */
81 #define PIOS_INCLUDE_ADXL345
82 /* #define PIOS_INCLUDE_BMA180 */
83 /* #define PIOS_INCLUDE_L3GD20 */
84 #define PIOS_INCLUDE_MPU6000
85 #define PIOS_MPU6000_ACCEL
86 /* #define PIOS_INCLUDE_HMC5843 */
87 /* #define PIOS_INCLUDE_HMC5X83 */
88 /* #define PIOS_HMC5883_HAS_GPIOS */
89 /* #define PIOS_INCLUDE_BMP085 */
90 /* #define PIOS_INCLUDE_MS5611 */
91 /* #define PIOS_INCLUDE_MPXV */
92 /* #define PIOS_INCLUDE_ETASV3 */
93 /* #define PIOS_INCLUDE_HCSR04 */
95 #define PIOS_SENSOR_RATE 500.0f
97 /* PIOS receiver drivers */
98 #define PIOS_INCLUDE_PWM
99 #define PIOS_INCLUDE_PPM
100 #define PIOS_INCLUDE_PPM_FLEXI
101 #define PIOS_INCLUDE_DSM
102 #define PIOS_INCLUDE_SBUS
103 /* #define PIOS_INCLUDE_GCSRCVR */
104 /* #define PIOS_INCLUDE_OPLINKRCVR */
106 /* PIOS abstract receiver interface */
107 #define PIOS_INCLUDE_RCVR
109 /* PIOS common peripherals */
110 #define PIOS_INCLUDE_LED
111 #define PIOS_INCLUDE_IAP
112 #define PIOS_INCLUDE_SERVO
113 /* #define PIOS_INCLUDE_I2C_ESC */
114 /* #define PIOS_INCLUDE_OVERO */
115 /* #define PIOS_OVERO_SPI */
116 /* #define PIOS_INCLUDE_SDCARD */
117 /* #define LOG_FILENAME "startup.log" */
118 #define PIOS_INCLUDE_FLASH
119 #define PIOS_INCLUDE_FLASH_LOGFS_SETTINGS
120 /* #define FLASH_FREERTOS */
121 /* #define PIOS_INCLUDE_FLASH_EEPROM */
122 /* #define PIOS_INCLUDE_FLASH_INTERNAL */
124 /* PIOS radio modules */
125 /* #define PIOS_INCLUDE_RFM22B */
126 /* #define PIOS_INCLUDE_RFM22B_COM */
127 /* #define PIOS_INCLUDE_PPM_OUT */
128 /* #define PIOS_RFM22B_DEBUG_ON_TELEM */
130 /* PIOS misc peripherals */
131 /* #define PIOS_INCLUDE_VIDEO */
132 /* #define PIOS_INCLUDE_WAVE */
133 /* #define PIOS_INCLUDE_UDP */
135 /* PIOS abstract comms interface with options */
136 #define PIOS_INCLUDE_COM
137 /* #define PIOS_INCLUDE_COM_MSG */
138 #define PIOS_INCLUDE_TELEMETRY_RF
139 /* #define PIOS_INCLUDE_COM_TELEM */
140 /* #define PIOS_INCLUDE_COM_FLEXI */
141 /* #define PIOS_INCLUDE_COM_AUX */
142 /* #define PIOS_TELEM_PRIORITY_QUEUE */
143 #define PIOS_INCLUDE_GPS
144 #define PIOS_GPS_MINIMAL
145 /* #define PIOS_INCLUDE_GPS_NMEA_PARSER */
146 #define PIOS_INCLUDE_GPS_UBX_PARSER
147 /* #define PIOS_GPS_SETS_HOMELOCATION */
149 /* Stabilization options */
150 /* #define PIOS_QUATERNION_STABILIZATION */
151 #define PIOS_EXCLUDE_ADVANCED_FEATURES
152 /* Performance counters */
153 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 1995998
155 /* Alarm Thresholds */
156 #define HEAP_LIMIT_WARNING 220
157 #define HEAP_LIMIT_CRITICAL 40
158 #define IRQSTACK_LIMIT_WARNING 100
159 #define IRQSTACK_LIMIT_CRITICAL 60
160 #define CPULOAD_LIMIT_WARNING 85
161 #define CPULOAD_LIMIT_CRITICAL 95
163 /* Task stack sizes */
164 #define PIOS_ACTUATOR_STACK_SIZE 820
165 #define PIOS_MANUAL_STACK_SIZE 735
166 #define PIOS_RECEIVER_STACK_SIZE 620
167 #define PIOS_STABILIZATION_STACK_SIZE 400
169 #ifdef DIAG_TASKS
170 #define PIOS_SYSTEM_STACK_SIZE 740
171 #else
172 #define PIOS_SYSTEM_STACK_SIZE 660
173 #endif
174 #define PIOS_TELEM_RX_STACK_SIZE 410
175 #define PIOS_TELEM_TX_STACK_SIZE 560
176 #define PIOS_EVENTDISPATCHER_STACK_SIZE 95
178 /* This can't be too high to stop eventdispatcher thread overflowing */
179 #define PIOS_EVENTDISAPTCHER_QUEUE 10
181 /* Revolution series */
182 /* #define REVOLUTION */
184 #endif /* PIOS_CONFIG_H */
186 * @}
187 * @}