From 798ad15bba9ca7b44142dfb06eca27c02cf536aa Mon Sep 17 00:00:00 2001 From: gussy Date: Thu, 4 Mar 2010 05:51:11 +0000 Subject: [PATCH] More refactoring. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@235 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/OpenPilot/System/inc/pios_config.h | 1 + flight/PiOS/inc/pios_i2c.h | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/flight/OpenPilot/System/inc/pios_config.h b/flight/OpenPilot/System/inc/pios_config.h index d79bc71d4..c10412fec 100644 --- a/flight/OpenPilot/System/inc/pios_config.h +++ b/flight/OpenPilot/System/inc/pios_config.h @@ -47,6 +47,7 @@ //#define PIOS_DONT_USE_COM //#define PIOS_DONT_USE_SDCARD //#define PIOS_DONT_USE_SETTINGS +//#define PIOS_DONT_USE_ESC_I2C /* Defaults for Logging */ diff --git a/flight/PiOS/inc/pios_i2c.h b/flight/PiOS/inc/pios_i2c.h index c3f7cf5fb..8511cb0ba 100644 --- a/flight/PiOS/inc/pios_i2c.h +++ b/flight/PiOS/inc/pios_i2c.h @@ -28,16 +28,16 @@ #define PIOS_I2C_H /* Local defines */ -#define I2C_ERROR_INVALID_PORT -1 -#define I2C_ERROR_GENERAL -2 -#define I2C_ERROR_UNSUPPORTED_TRANSFER_TYPE -3 -#define I2C_ERROR_TIMEOUT -4 -#define I2C_ERROR_ARBITRATION_LOST -5 -#define I2C_ERROR_BUS -6 -#define I2C_ERROR_SLAVE_NOT_CONNECTED -7 -#define I2C_ERROR_UNEXPECTED_EVENT -8 -#define I2C_ERROR_RX_BUFFER_OVERRUN -9 -#define I2C_ERROR_PREV_OFFSET -128 +#define I2C_ERROR_INVALID_PORT -1 +#define I2C_ERROR_GENERAL -2 +#define I2C_ERROR_UNSUPPORTED_TRANSFER_TYPE -3 +#define I2C_ERROR_TIMEOUT -4 +#define I2C_ERROR_ARBITRATION_LOST -5 +#define I2C_ERROR_BUS -6 +#define I2C_ERROR_SLAVE_NOT_CONNECTED -7 +#define I2C_ERROR_UNEXPECTED_EVENT -8 +#define I2C_ERROR_RX_BUFFER_OVERRUN -9 +#define I2C_ERROR_PREV_OFFSET -128 /* Global Types */ typedef enum {