mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
PIOS_DONT_USE_XXX => PIOS_INCLUDE_XXX
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@283 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
18515b1897
commit
47038af0c0
@ -29,23 +29,23 @@
|
||||
#define PIOS_CONFIG_H
|
||||
|
||||
/* Enable/Disable PiOS Modules */
|
||||
//#define PIOS_DONT_USE_ADC
|
||||
//#define PIOS_DONT_USE_DELAY
|
||||
#define PIOS_DONT_USE_I2C
|
||||
//#define PIOS_DONT_USE_IRQ
|
||||
//#define PIOS_DONT_USE_LED
|
||||
#define PIOS_DONT_USE_PWM
|
||||
#define PIOS_DONT_USE_SERVO
|
||||
//#define PIOS_DONT_USE_SPI
|
||||
//#define PIOS_DONT_USE_SYS
|
||||
//#define PIOS_DONT_USE_USART
|
||||
#define PIOS_DONT_USE_USB_COM
|
||||
#define PIOS_DONT_USE_USB_HID
|
||||
#define PIOS_DONT_USE_USB
|
||||
#define PIOS_DONT_USE_BMP085
|
||||
#define PIOS_DONT_USE_COM
|
||||
#define PIOS_DONT_USE_SDCARD
|
||||
#define PIOS_DONT_USE_SETTINGS
|
||||
#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
|
||||
|
||||
|
||||
#endif /* PIOS_CONFIG_H */
|
||||
|
@ -30,24 +30,24 @@
|
||||
|
||||
|
||||
/* Enable/Disable PiOS Modules */
|
||||
//#define PIOS_DONT_USE_ADC
|
||||
//#define PIOS_DONT_USE_DELAY
|
||||
//#define PIOS_DONT_USE_I2C
|
||||
//#define PIOS_DONT_USE_IRQ
|
||||
//#define PIOS_DONT_USE_LED
|
||||
//#define PIOS_DONT_USE_PWM
|
||||
//#define PIOS_DONT_USE_SERVO
|
||||
//#define PIOS_DONT_USE_SPI
|
||||
//#define PIOS_DONT_USE_SYS
|
||||
//#define PIOS_DONT_USE_USART
|
||||
#define PIOS_DONT_USE_USB_COM
|
||||
//#define PIOS_DONT_USE_USB_HID
|
||||
//#define PIOS_DONT_USE_USB
|
||||
//#define PIOS_DONT_USE_BMP085
|
||||
//#define PIOS_DONT_USE_COM
|
||||
//#define PIOS_DONT_USE_SDCARD
|
||||
//#define PIOS_DONT_USE_SETTINGS
|
||||
//#define PIOS_DONT_USE_ESC_I2C
|
||||
#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
|
||||
#define PIOS_INCLUDE_ESC_I2C
|
||||
|
||||
|
||||
/* Defaults for Logging */
|
||||
|
@ -42,7 +42,7 @@ Example of how to use this module:
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_BMP085)
|
||||
#if defined(PIOS_INCLUDE_BMP085)
|
||||
|
||||
|
||||
/* Glocal Variables */
|
||||
|
@ -30,7 +30,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_COM)
|
||||
#if defined(PIOS_INCLUDE_COM)
|
||||
|
||||
|
||||
/* Global Variables */
|
||||
|
@ -30,7 +30,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SDCARD)
|
||||
#if defined(PIOS_INCLUDE_SDCARD)
|
||||
|
||||
|
||||
/* Global Variables */
|
||||
|
@ -29,7 +29,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SETTINGS)
|
||||
#if defined(PIOS_INCLUDE_SETTINGS)
|
||||
|
||||
|
||||
/* Private Function Prototypes */
|
||||
|
@ -30,7 +30,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_ADC)
|
||||
#if defined(PIOS_INCLUDE_ADC)
|
||||
|
||||
/* Local Variables */
|
||||
static GPIO_TypeDef* ADC_GPIO_PORT[PIOS_ADC_NUM_PINS] = PIOS_ADC_PORTS;
|
||||
|
@ -31,7 +31,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_DELAY)
|
||||
#if defined(PIOS_INCLUDE_DELAY)
|
||||
|
||||
/**
|
||||
* Initialises the Timer used by PIOS_DELAY functions<BR>
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
|
||||
#if !defined(PIOS_DONT_USE_I2C)
|
||||
#if defined(PIOS_INCLUDE_I2C)
|
||||
|
||||
/* Options */
|
||||
// #define USE_DEBUG_PINS
|
||||
|
@ -30,7 +30,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_IRQ)
|
||||
#if defined(PIOS_INCLUDE_IRQ)
|
||||
|
||||
|
||||
/* Private Function Prototypes */
|
||||
|
@ -29,7 +29,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_LED)
|
||||
#if defined(PIOS_INCLUDE_LED)
|
||||
|
||||
/* Private Function Prototypes */
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_PWM)
|
||||
#if defined(PIOS_INCLUDE_PWM)
|
||||
|
||||
/* Local Variables */
|
||||
static GPIO_TypeDef* PIOS_PWM_GPIO_PORT[PIOS_PWM_NUM_INPUTS] = PIOS_PWM_GPIO_PORTS;
|
||||
|
@ -29,7 +29,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SERVO)
|
||||
#if defined(PIOS_INCLUDE_SERVO)
|
||||
|
||||
#ifdef PIOS_ENABLE_DEBUG_PINS
|
||||
#warning "*** PIOS_ENABLE_DEBUG_PINS defined => Servo outputs will not function ***"
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
#include <pios.h>
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SPI)
|
||||
#if defined(PIOS_INCLUDE_SPI)
|
||||
|
||||
|
||||
/* Local variables */
|
||||
|
@ -30,7 +30,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SYS)
|
||||
#if defined(PIOS_INCLUDE_SYS)
|
||||
|
||||
|
||||
/* Private Function Prototypes */
|
||||
@ -73,7 +73,7 @@ void PIOS_SYS_Init(void)
|
||||
/* Initialise Basic NVIC */
|
||||
NVIC_Configuration();
|
||||
|
||||
#if !defined(PIOS_DONT_USE_LED)
|
||||
#if defined(PIOS_INCLUDE_LED)
|
||||
/* Initialise LEDs */
|
||||
PIOS_LED_Init();
|
||||
#endif
|
||||
|
@ -30,7 +30,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_USART)
|
||||
#if defined(PIOS_INCLUDE_USART)
|
||||
|
||||
|
||||
/* Global Variables */
|
||||
|
@ -29,7 +29,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_USB)
|
||||
#if defined(PIOS_INCLUDE_USB)
|
||||
|
||||
|
||||
/* Local definitions */
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "pios.h"
|
||||
#include <usb_lib.h>
|
||||
|
||||
#if !defined(PIOS_DONT_USE_USB_COM)
|
||||
#if defined(PIOS_INCLUDE_USB_COM)
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -31,7 +31,7 @@
|
||||
/* Project Includes */
|
||||
#include "pios.h"
|
||||
|
||||
#if !defined(PIOS_DONT_USE_HID)
|
||||
#if defined(PIOS_INCLUDE_USB_HID)
|
||||
|
||||
|
||||
/* Local types */
|
||||
|
@ -27,7 +27,7 @@
|
||||
#ifndef PIOS_SDCARD_H
|
||||
#define PIOS_SDCARD_H
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SDCARD)
|
||||
#if defined(PIOS_INCLUDE_SDCARD)
|
||||
|
||||
/* Public Functions */
|
||||
typedef struct {
|
||||
|
@ -49,7 +49,7 @@
|
||||
#include <stm32f10x.h>
|
||||
#include <stm32f10x_conf.h>
|
||||
|
||||
#if !defined(PIOS_DONT_USE_SDCARD)
|
||||
#if defined(PIOS_INCLUDE_SDCARD)
|
||||
/* Dosfs Includes */
|
||||
#include <dosfs.h>
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
#include <pios_com.h>
|
||||
#include <pios_bmp085.h>
|
||||
|
||||
#if !defined(PIOS_DONT_USE_USB)
|
||||
#if defined(PIOS_INCLUDE_USB)
|
||||
/* USB Libs */
|
||||
#include <usb_lib.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user