1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

pios: pios_config.h cleanup (CopterControl)

Conflicts:
	flight/targets/CopterControl/System/inc/pios_config.h
This commit is contained in:
Oleg Semyonov 2013-03-15 12:32:06 +02:00
parent 39363d9efa
commit fc6024d23e

View File

@ -71,19 +71,29 @@
/* PIOS common functions */ /* PIOS common functions */
#include <pios_crc.h> #include <pios_crc.h>
/* PIOS system functions */ /* PIOS bootloader helper */
#ifdef PIOS_INCLUDE_BL_HELPER
/* #define PIOS_INCLUDE_BL_HELPER_WRITE_SUPPORT */
#include <pios_bl_helper.h>
#endif
/* PIOS FreeRTOS support */
#ifdef PIOS_INCLUDE_FREERTOS #ifdef PIOS_INCLUDE_FREERTOS
#include "FreeRTOS.h" #include "FreeRTOS.h"
#include "task.h" #include "task.h"
#include "queue.h" #include "queue.h"
#include "semphr.h" #include "semphr.h"
#endif #endif
/* PIOS system functions */
#ifdef PIOS_INCLUDE_DELAY #ifdef PIOS_INCLUDE_DELAY
#include <pios_delay.h> #include <pios_delay.h>
#endif #endif
#ifdef PIOS_INCLUDE_INITCALL #ifdef PIOS_INCLUDE_INITCALL
#include "pios_initcall.h" #include "pios_initcall.h"
#endif #endif
#ifdef PIOS_INCLUDE_SYS #ifdef PIOS_INCLUDE_SYS
#include <pios_sys.h> #include <pios_sys.h>
#endif #endif
@ -92,30 +102,39 @@
#ifdef PIOS_INCLUDE_IRQ #ifdef PIOS_INCLUDE_IRQ
#include <pios_irq.h> #include <pios_irq.h>
#endif #endif
#ifdef PIOS_INCLUDE_RTC #ifdef PIOS_INCLUDE_RTC
#include <pios_rtc.h> #include <pios_rtc.h>
#endif #endif
#ifdef PIOS_INCLUDE_TIM #ifdef PIOS_INCLUDE_TIM
#include <pios_tim.h> #include <pios_tim.h>
#endif #endif
#ifdef PIOS_INCLUDE_USART #ifdef PIOS_INCLUDE_USART
#include <pios_usart.h> #include <pios_usart.h>
#endif #endif
#ifdef PIOS_INCLUDE_ADC #ifdef PIOS_INCLUDE_ADC
#include <pios_adc.h> #include <pios_adc.h>
#endif #endif
#ifdef PIOS_INCLUDE_I2C #ifdef PIOS_INCLUDE_I2C
#include <pios_i2c.h> #include <pios_i2c.h>
#endif #endif
#ifdef PIOS_INCLUDE_SPI #ifdef PIOS_INCLUDE_SPI
#include <pios_spi.h> #include <pios_spi.h>
#endif #endif
#ifdef PIOS_INCLUDE_GPIO #ifdef PIOS_INCLUDE_GPIO
#include <pios_gpio.h> #include <pios_gpio.h>
#endif #endif
#ifdef PIOS_INCLUDE_EXTI #ifdef PIOS_INCLUDE_EXTI
#include <pios_exti.h> #include <pios_exti.h>
#endif #endif
#ifdef PIOS_INCLUDE_WDG #ifdef PIOS_INCLUDE_WDG
#include <pios_wdg.h> #include <pios_wdg.h>
#endif #endif
@ -139,44 +158,54 @@
/* ADXL345 3-Axis Accelerometer */ /* ADXL345 3-Axis Accelerometer */
#include <pios_adxl345.h> #include <pios_adxl345.h>
#endif #endif
#ifdef PIOS_INCLUDE_BMA180 #ifdef PIOS_INCLUDE_BMA180
/* BMA180 3-Axis Accelerometer */ /* BMA180 3-Axis Accelerometer */
#include <pios_bma180.h> #include <pios_bma180.h>
#endif #endif
#ifdef PIOS_INCLUDE_L3GD20 #ifdef PIOS_INCLUDE_L3GD20
/* L3GD20 3-Axis Gyro */ /* L3GD20 3-Axis Gyro */
#include <pios_l3gd20.h> #include <pios_l3gd20.h>
#endif #endif
#ifdef PIOS_INCLUDE_MPU6000 #ifdef PIOS_INCLUDE_MPU6000
/* MPU6000 3-Axis Gyro/Accelerometer */ /* MPU6000 3-Axis Gyro/Accelerometer */
/* #define PIOS_MPU6000_ACCEL */ /* #define PIOS_MPU6000_ACCEL */
#include <pios_mpu6000.h> #include <pios_mpu6000.h>
#endif #endif
#ifdef PIOS_INCLUDE_HMC5843 #ifdef PIOS_INCLUDE_HMC5843
/* HMC5843 3-Axis Digital Compass */ /* HMC5843 3-Axis Digital Compass */
#include <pios_hmc5843.h> #include <pios_hmc5843.h>
#endif #endif
#ifdef PIOS_INCLUDE_HMC5883 #ifdef PIOS_INCLUDE_HMC5883
/* HMC5883 3-Axis Digital Compass */ /* HMC5883 3-Axis Digital Compass */
/* #define PIOS_HMC5883_HAS_GPIOS */ /* #define PIOS_HMC5883_HAS_GPIOS */
#include <pios_hmc5883.h> #include <pios_hmc5883.h>
#endif #endif
#ifdef PIOS_INCLUDE_BMP085 #ifdef PIOS_INCLUDE_BMP085
/* BMP085 Barometric Pressure Sensor */ /* BMP085 Barometric Pressure Sensor */
#include <pios_bmp085.h> #include <pios_bmp085.h>
#endif #endif
#ifdef PIOS_INCLUDE_MS5611 #ifdef PIOS_INCLUDE_MS5611
/* MS5611 Barometric Pressure Sensor */ /* MS5611 Barometric Pressure Sensor */
#include <pios_ms5611.h> #include <pios_ms5611.h>
#endif #endif
#ifdef PIOS_INCLUDE_MPXV #ifdef PIOS_INCLUDE_MPXV
/* MPXV5004, MPXV7002 based Airspeed Sensor */ /* MPXV5004, MPXV7002 based Airspeed Sensor */
#include <pios_mpxv.h> #include <pios_mpxv.h>
#endif #endif
#ifdef PIOS_INCLUDE_ETASV3 #ifdef PIOS_INCLUDE_ETASV3
/* Eagle Tree Systems Airspeed MicroSensor V3 */ /* Eagle Tree Systems Airspeed MicroSensor V3 */
#include <pios_etasv3.h> #include <pios_etasv3.h>
#endif #endif
#ifdef PIOS_INCLUDE_HCSR04 #ifdef PIOS_INCLUDE_HCSR04
/* HC-SR04 Ultrasonic Sensor */ /* HC-SR04 Ultrasonic Sensor */
#include <pios_hcsr04.h> #include <pios_hcsr04.h>
@ -186,15 +215,19 @@
#ifdef PIOS_INCLUDE_PWM #ifdef PIOS_INCLUDE_PWM
#include <pios_pwm.h> #include <pios_pwm.h>
#endif #endif
#ifdef PIOS_INCLUDE_PPM #ifdef PIOS_INCLUDE_PPM
#include <pios_ppm.h> #include <pios_ppm.h>
#endif #endif
#ifdef PIOS_INCLUDE_DSM #ifdef PIOS_INCLUDE_DSM
#include <pios_dsm.h> #include <pios_dsm.h>
#endif #endif
#ifdef PIOS_INCLUDE_SBUS #ifdef PIOS_INCLUDE_SBUS
#include <pios_sbus.h> #include <pios_sbus.h>
#endif #endif
#ifdef PIOS_INCLUDE_GCSRCVR #ifdef PIOS_INCLUDE_GCSRCVR
/* only priv header */ /* only priv header */
#endif #endif
@ -203,50 +236,65 @@
#ifdef PIOS_INCLUDE_LED #ifdef PIOS_INCLUDE_LED
#include <pios_led.h> #include <pios_led.h>
#endif #endif
#ifdef PIOS_INCLUDE_IAP #ifdef PIOS_INCLUDE_IAP
#include <pios_iap.h> #include <pios_iap.h>
#endif #endif
#ifdef PIOS_INCLUDE_SERVO #ifdef PIOS_INCLUDE_SERVO
#include <pios_servo.h> #include <pios_servo.h>
#endif #endif
#ifdef PIOS_INCLUDE_I2C_ESC #ifdef PIOS_INCLUDE_I2C_ESC
#include <pios_i2c_esc.h> #include <pios_i2c_esc.h>
#endif #endif
#ifdef PIOS_INCLUDE_OVERO #ifdef PIOS_INCLUDE_OVERO
/* #define PIOS_OVERO_SPI */ /* #define PIOS_OVERO_SPI */
#include <pios_overo.h> #include <pios_overo.h>
#endif #endif
#ifdef PIOS_INCLUDE_SDCARD #ifdef PIOS_INCLUDE_SDCARD
/* #define LOG_FILENAME "startup.log" */ /* #define LOG_FILENAME "startup.log" */
#include <dosfs.h> #include <dosfs.h>
#include <pios_sdcard.h> #include <pios_sdcard.h>
#endif #endif
#ifdef PIOS_INCLUDE_FLASH #ifdef PIOS_INCLUDE_FLASH
/* #define PIOS_INCLUDE_FLASH_SECTOR_SETTINGS */ /* #define PIOS_INCLUDE_FLASH_SECTOR_SETTINGS */
/* #define FLASH_FREERTOS */ /* #define FLASH_FREERTOS */
#include <pios_flash.h> #include <pios_flash.h>
#include <pios_flashfs.h> #include <pios_flashfs.h>
#endif #endif
#ifdef PIOS_INCLUDE_FLASH_EEPROM #ifdef PIOS_INCLUDE_FLASH_EEPROM
#include <pios_eeprom.h> #include <pios_eeprom.h>
#endif #endif
/* PIOS Radio modules */
#ifdef PIOS_INCLUDE_RFM22B #ifdef PIOS_INCLUDE_RFM22B
/* #define PIOS_INCLUDE_PACKET_HANDLER */ /* #define PIOS_INCLUDE_PACKET_HANDLER */
#include <pios_rfm22b.h>
#ifdef PIOS_INCLUDE_RFM22B_COM #ifdef PIOS_INCLUDE_RFM22B_COM
#include <pios_rfm22b_com.h> #include <pios_rfm22b_com.h>
#endif #endif
#ifdef PIOS_INCLUDE_RFM22B_RCVR #ifdef PIOS_INCLUDE_RFM22B_RCVR
#include <pios_rfm22b_rcvr.h> #include <pios_rfm22b_rcvr.h>
#endif #endif
#include <pios_rfm22b.h> #endif /* PIOS_INCLUDE_RFM22B */
#endif
/* PIOS misc peripherals */
#ifdef PIOS_INCLUDE_VIDEO #ifdef PIOS_INCLUDE_VIDEO
#include <pios_video.h> #include <pios_video.h>
#endif #endif
#ifdef PIOS_INCLUDE_WAVE #ifdef PIOS_INCLUDE_WAVE
#include <pios_wavplay.h> #include <pios_wavplay.h>
#endif #endif
#ifdef PIOS_INCLUDE_UDP #ifdef PIOS_INCLUDE_UDP
#include <pios_udp.h> #include <pios_udp.h>
#endif #endif
@ -272,15 +320,8 @@
#include <pios_com.h> #include <pios_com.h>
#endif #endif
/* PIOS bootloader helper */
#ifdef PIOS_INCLUDE_BL_HELPER
/* #define PIOS_INCLUDE_BL_HELPER_WRITE_SUPPORT */
#include <pios_bl_helper.h>
#endif
/* Performance counters */ /* Performance counters */
/* #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 995998 */ /* #define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 995998 */
#endif /* USE_SIM_POSIX */ #endif /* USE_SIM_POSIX */
#endif /* PIOS_H */ #endif /* PIOS_H */