dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_config.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 
31 #ifndef PIOS_CONFIG_POSIX_H
32 #define PIOS_CONFIG_POSIX_H
33 
34 
35 /* Enable/Disable PiOS Modules */
36 #define PIOS_INCLUDE_SYS
37 #define PIOS_INCLUDE_ANNUNC
38 #define PIOS_INCLUDE_RTOS /* Indicates an RTOS is present */
39 
40 #define PIOS_INCLUDE_COM
41 #define PIOS_INCLUDE_GPS
42 #define PIOS_INCLUDE_GPS_NMEA_PARSER
43 #define PIOS_INCLUDE_GPS_UBX_PARSER
44 #define PIOS_INCLUDE_MSP_BRIDGE
45 #define PIOS_INCLUDE_LIGHTTELEMETRY
46 #define PIOS_INCLUDE_OPENLOG
47 
48 #define PIOS_INCLUDE_TCP
49 #define PIOS_INCLUDE_UDP
50 #define PIOS_INCLUDE_SERVO
51 #define PIOS_INCLUDE_RCVR
52 #define PIOS_INCLUDE_UAVTALKRCVR
53 #define PIOS_INCLUDE_IAP
54 #define PIOS_INCLUDE_BL_HELPER
55 #define PIOS_INCLUDE_FLASH
56 #define PIOS_INCLUDE_LOGFS_SETTINGS
57 #define PIOS_INCLUDE_RANGEFINDER
58 #define PIOS_INCLUDE_INITCALL /* Include init call structures */
59 #define PIOS_INCLUDE_RTC
60 
61 #define PIOS_RCVR_MAX_CHANNELS 12
62 
63 /* COM Module */
64 #define PIOS_TELEM_STACK_SIZE PIOS_THREAD_STACK_SIZE_MIN
65 
66 /* Stabilization options */
67 
68 #define HEAP_LIMIT_WARNING 4000
69 #define HEAP_LIMIT_CRITICAL 1000
70 #define IRQSTACK_LIMIT_WARNING 150
71 #define IRQSTACK_LIMIT_CRITICAL 80
72 #define CPULOAD_LIMIT_WARNING 80
73 #define CPULOAD_LIMIT_CRITICAL 95
74 
75 #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 9959
76 
77 // Enable POI tracking mode for camera stabilization
78 #define CAMERASTAB_POI_MODE
79 
80 #if 0
81 /* Disabled by default-- for sim, provide a log file on command line
82  * Still have the capability to enable here if you're working on / developing
83  * streamfs
84  */
85 #define PIOS_INCLUDE_LOG_TO_FLASH
86 #define PIOS_LOGFLASH_SECT_SIZE 0x10000 /* 64kb */
87 #endif
88 
89 /* Hardware support on Linux only */
90 #ifdef __linux__
91 #define PIOS_INCLUDE_SERIAL
92 #define PIOS_INCLUDE_I2C
93 #define PIOS_INCLUDE_SPI
94 
95 #define PIOS_INCLUDE_RANGEFINDER
96 #define PIOS_INCLUDE_OPTICALFLOW
97 
98 #define PIOS_INCLUDE_MS5611
99 #define PIOS_INCLUDE_MS5611_SPI
100 #define PIOS_INCLUDE_BMP280
101 #define PIOS_INCLUDE_BMM150
102 #define PIOS_INCLUDE_BMX055
103 #define PIOS_INCLUDE_OMNIP
104 #define PIOS_INCLUDE_FLYINGPIO
105 #define PIOS_INCLUDE_PX4FLOW
106 #define PIOS_INCLUDE_HMC5883
107 #define PIOS_HMC5883_NO_EXTI
108 #define PIOS_INCLUDE_HMC5983
109 #endif
110 
111 #define PIOS_INCLUDE_FAKETICK
112 #define PIOS_INCLUDE_SIMSENSORS
113 #define PIOS_INCLUDE_ADC
114 
115 #if !(defined(_WIN32) || defined(WIN32) || defined(__MINGW32__))
116 #define PIOS_INCLUDE_SIMSENSORS_YASIM
117 #endif
118 
119 #endif /* PIOS_CONFIG_POSIX_H */
120