2009-12-02 06:33:29 +01:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
* @file pios_config.h
|
2010-01-31 18:56:54 +01:00
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
2009-12-15 13:17:11 +01:00
|
|
|
* @brief PiOS configuration header.
|
2010-03-10 10:12:31 +01:00
|
|
|
* Central compile time config for the project.
|
2009-12-02 06:33:29 +01:00
|
|
|
* @see The GNU Public License (GPL) Version 3
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef PIOS_CONFIG_H
|
|
|
|
#define PIOS_CONFIG_H
|
|
|
|
|
2009-12-23 05:03:21 +01:00
|
|
|
|
2010-02-28 07:47:49 +01:00
|
|
|
/* Enable/Disable PiOS Modules */
|
2010-03-11 13:38:51 +01:00
|
|
|
#define PIOS_INCLUDE_ADC
|
|
|
|
#define PIOS_INCLUDE_DELAY
|
|
|
|
#define PIOS_INCLUDE_I2C
|
|
|
|
#define PIOS_INCLUDE_IRQ
|
|
|
|
#define PIOS_INCLUDE_LED
|
|
|
|
#define PIOS_INCLUDE_PWM
|
|
|
|
#define PIOS_INCLUDE_SERVO
|
|
|
|
#define PIOS_INCLUDE_SPI
|
|
|
|
#define PIOS_INCLUDE_SYS
|
|
|
|
#define PIOS_INCLUDE_USART
|
|
|
|
//#define PIOS_INCLUDE_USB_COM
|
|
|
|
#define PIOS_INCLUDE_USB_HID
|
|
|
|
#define PIOS_INCLUDE_USB
|
|
|
|
#define PIOS_INCLUDE_BMP085
|
|
|
|
#define PIOS_INCLUDE_COM
|
|
|
|
#define PIOS_INCLUDE_SDCARD
|
|
|
|
#define PIOS_INCLUDE_SETTINGS
|
2010-03-13 07:44:15 +01:00
|
|
|
#define PIOS_INCLUDE_FREERTOS
|
2010-03-14 13:00:43 +01:00
|
|
|
#define PIOS_INCLUDE_GPIO
|
2010-02-28 07:47:49 +01:00
|
|
|
|
2009-12-02 06:33:29 +01:00
|
|
|
|
2009-12-23 05:03:21 +01:00
|
|
|
/* Defaults for Logging */
|
2010-01-25 17:30:31 +01:00
|
|
|
#define LOG_FILENAME "PIOS.LOG"
|
2010-01-24 09:13:48 +01:00
|
|
|
#define STARTUP_LOG_ENABLED 1
|
2009-12-23 05:03:21 +01:00
|
|
|
|
2009-12-02 06:33:29 +01:00
|
|
|
|
2009-12-21 04:57:30 +01:00
|
|
|
/* Defaults for MinIni */
|
2010-01-25 17:30:31 +01:00
|
|
|
#define SETTINGS_FILE "SETTINGS.INI"
|
2009-12-23 05:03:21 +01:00
|
|
|
|
2009-12-21 04:57:30 +01:00
|
|
|
/* COM Module */
|
|
|
|
#define GPS_BAUDRATE 19200
|
|
|
|
#define TELEM_BAUDRATE 19200
|
|
|
|
#define AUXUART_ENABLED 0
|
|
|
|
#define AUXUART_BAUDRATE 19200
|
|
|
|
|
|
|
|
/* Servos */
|
|
|
|
#define SERVOS_POSITION_MIN 800
|
|
|
|
#define SERVOS_POSITION_MAX 2200
|
|
|
|
|
2009-12-02 06:33:29 +01:00
|
|
|
|
|
|
|
#endif /* PIOS_CONFIG_H */
|