2 ******************************************************************************
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
6 * @brief PiOS configuration header.
7 * Central compile time config for the project.
8 * @see The GNU Public License (GPL) Version 3
10 *****************************************************************************/
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef PIOS_CONFIG_POSIX_H
29 #define PIOS_CONFIG_POSIX_H
32 /* Enable/Disable PiOS Modules */
33 #define PIOS_INCLUDE_SYS
34 #define PIOS_INCLUDE_DELAY
35 #define PIOS_INCLUDE_LED
36 #define PIOS_INCLUDE_SDCARD
37 #define PIOS_INCLUDE_FREERTOS
38 #define PIOS_INCLUDE_CALLBACKSCHEDULER
39 #define PIOS_INCLUDE_TASK_MONITOR
40 #define PIOS_INCLUDE_COM
41 // #define PIOS_INCLUDE_GPS
42 #define PIOS_INCLUDE_IRQ
43 #define PIOS_INCLUDE_TELEMETRY_RF
44 #define PIOS_INCLUDE_TCP
45 #define PIOS_INCLUDE_UDP
46 #define PIOS_INCLUDE_SERVO
47 #define PIOS_INCLUDE_RCVR
48 #define PIOS_INCLUDE_GCSRCVR
50 #define PIOS_RCVR_MAX_CHANNELS 12
51 #define PIOS_RCVR_MAX_DEVS 3
53 /* Defaults for Logging */
54 #define LOG_FILENAME "PIOS.LOG"
55 #define STARTUP_LOG_ENABLED 1
58 #define GPS_BAUDRATE 19200
59 #define TELEM_BAUDRATE 19200
60 #define AUXUART_ENABLED 0
61 #define AUXUART_BAUDRATE 19200
63 #define TELEM_QUEUE_SIZE 20
64 #define PIOS_TELEM_STACK_SIZE 2048
66 /* Stabilization options */
67 #define PIOS_QUATERNION_STABILIZATION
70 #define PIOS_GPS_SETS_HOMELOCATION
72 #define HEAP_LIMIT_WARNING 4000
73 #define HEAP_LIMIT_CRITICAL 1000
74 #define IRQSTACK_LIMIT_WARNING 150
75 #define IRQSTACK_LIMIT_CRITICAL 80
76 #define CPULOAD_LIMIT_WARNING 80
77 #define CPULOAD_LIMIT_CRITICAL 95
81 #endif /* PIOS_CONFIG_POSIX_H */