From d00ab5523feeb46d6538f86f0c8982772054f79e Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sat, 8 Mar 2014 13:00:40 +0800 Subject: Add config option for OBD-II UART and I2C adapter --- megalogger/config.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'megalogger/config.h') diff --git a/megalogger/config.h b/megalogger/config.h index fe8dde5..ac06fd6 100644 --- a/megalogger/config.h +++ b/megalogger/config.h @@ -1,7 +1,16 @@ #ifndef CONFIG_H_INCLUDED #define CONFIG_H_INCLUDED +// definitions +#define OBD_MODEL_UART 0 +#define OBD_MODEL_I2C 1 + // configurations +/************************************** +* Choose model of OBD-II Adapter +**************************************/ +#define OBD_MODEL OBD_MODEL_UART + /************************************** * Choose SD pin here **************************************/ @@ -18,6 +27,11 @@ #define GPS_BAUDRATE 38400 /* bps */ //#define GPS_OPEN_BAUDRATE 4800 /* bps */ +/************************************** +* Accelerometer & Gyro +**************************************/ +#define USE_MPU6050 1 + /************************************** * Timeout/interval options **************************************/ -- cgit v1.2.3