2009-11-28 10:28:11 +01:00
|
|
|
/**
|
2009-11-29 11:03:08 +01:00
|
|
|
******************************************************************************
|
2009-11-28 12:25:16 +01:00
|
|
|
*
|
2009-11-29 11:03:08 +01:00
|
|
|
* @file pios.h
|
2010-01-31 18:56:54 +01:00
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
2009-11-29 11:03:08 +01:00
|
|
|
* @brief Main PiOS header.
|
|
|
|
* - Central header for the project.
|
|
|
|
* @see The GNU Public License (GPL) Version 3
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
2009-11-28 10:28:11 +01:00
|
|
|
/*
|
|
|
|
* 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_H
|
|
|
|
#define PIOS_H
|
|
|
|
|
2009-12-02 06:33:29 +01:00
|
|
|
/* PIOS Compile Time Configuration */
|
|
|
|
#include "pios_config.h"
|
2010-02-28 09:29:14 +01:00
|
|
|
#include "pios_board.h"
|
2009-12-02 06:33:29 +01:00
|
|
|
|
2010-03-12 17:22:56 +01:00
|
|
|
#if defined(PIOS_INCLUDE_FREERTOS)
|
2010-03-06 04:13:14 +01:00
|
|
|
/* FreeRTOS Includes */
|
2010-03-06 07:17:17 +01:00
|
|
|
#include "FreeRTOS.h"
|
|
|
|
#include "task.h"
|
|
|
|
#include "queue.h"
|
|
|
|
#include "semphr.h"
|
2010-03-12 17:22:56 +01:00
|
|
|
#endif
|
2010-03-06 04:13:14 +01:00
|
|
|
|
2009-11-29 08:15:59 +01:00
|
|
|
/* C Lib Includes */
|
2009-11-28 10:28:11 +01:00
|
|
|
#include <stdio.h>
|
2009-11-30 18:01:21 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
2009-12-10 05:28:21 +01:00
|
|
|
#include <math.h>
|
2009-11-28 10:28:11 +01:00
|
|
|
|
|
|
|
/* STM32 Std Perf Lib */
|
|
|
|
#include <stm32f10x.h>
|
2009-12-01 15:29:55 +01:00
|
|
|
#include <stm32f10x_conf.h>
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2010-03-11 13:38:51 +01:00
|
|
|
#if defined(PIOS_INCLUDE_SDCARD)
|
2010-01-23 18:31:14 +01:00
|
|
|
/* Dosfs Includes */
|
|
|
|
#include <dosfs.h>
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2009-11-29 08:15:59 +01:00
|
|
|
/* minIni Includes */
|
2009-11-28 15:16:50 +01:00
|
|
|
#include <minIni.h>
|
|
|
|
|
2010-01-31 17:48:23 +01:00
|
|
|
/* Mass Storage Device Includes */
|
|
|
|
#include <msd.h>
|
2010-02-28 13:10:48 +01:00
|
|
|
#endif
|
2010-01-31 17:48:23 +01:00
|
|
|
|
2009-12-01 15:04:30 +01:00
|
|
|
/* PIOS Hardware Includes (STM32F10x) */
|
2009-12-11 19:48:48 +01:00
|
|
|
#include <pios_sys.h>
|
2009-12-24 03:51:20 +01:00
|
|
|
#include <pios_delay.h>
|
2009-12-11 19:48:48 +01:00
|
|
|
#include <pios_led.h>
|
2009-12-22 20:32:47 +01:00
|
|
|
#include <pios_sdcard.h>
|
2009-12-11 19:48:48 +01:00
|
|
|
#include <pios_usart.h>
|
|
|
|
#include <pios_irq.h>
|
|
|
|
#include <pios_adc.h>
|
|
|
|
#include <pios_servo.h>
|
|
|
|
#include <pios_i2c.h>
|
2010-01-23 18:31:14 +01:00
|
|
|
#include <pios_spi.h>
|
2010-03-30 06:48:15 +02:00
|
|
|
#include <pios_ppm.h>
|
2010-01-25 16:23:55 +01:00
|
|
|
#include <pios_pwm.h>
|
2010-05-15 20:22:03 +02:00
|
|
|
#include <pios_spektrum.h>
|
2010-01-31 17:48:23 +01:00
|
|
|
#include <pios_usb.h>
|
2010-02-05 05:58:59 +01:00
|
|
|
#include <pios_usb_hid.h>
|
2010-03-02 12:23:03 +01:00
|
|
|
#include <pios_debug.h>
|
2010-03-14 13:00:43 +01:00
|
|
|
#include <pios_gpio.h>
|
2010-03-21 01:49:48 +01:00
|
|
|
#if defined(PIOS_INCLUDE_EXTI)
|
|
|
|
#include <pios_exti.h>
|
|
|
|
#endif
|
2009-12-01 15:04:30 +01:00
|
|
|
|
|
|
|
/* PIOS Hardware Includes (Common) */
|
2010-01-23 18:31:14 +01:00
|
|
|
#include <pios_sdcard.h>
|
2009-12-11 19:48:48 +01:00
|
|
|
#include <pios_com.h>
|
2010-03-12 17:22:56 +01:00
|
|
|
#if defined(PIOS_INCLUDE_BMP085)
|
2009-12-11 19:48:48 +01:00
|
|
|
#include <pios_bmp085.h>
|
2010-03-12 17:22:56 +01:00
|
|
|
#endif
|
2010-05-12 10:18:49 +02:00
|
|
|
#if defined(PIOS_INCLUDE_HMC5843)
|
|
|
|
#include <pios_hmc5843.h>
|
|
|
|
#endif
|
|
|
|
|
2009-11-28 10:28:11 +01:00
|
|
|
|
2010-03-11 13:38:51 +01:00
|
|
|
#if defined(PIOS_INCLUDE_USB)
|
2010-02-05 05:58:59 +01:00
|
|
|
/* USB Libs */
|
|
|
|
#include <usb_lib.h>
|
2010-02-28 13:10:48 +01:00
|
|
|
#endif
|
2009-11-28 10:28:11 +01:00
|
|
|
|
|
|
|
#endif /* PIOS_H */
|