1 /* 2 $License: 3 Copyright (C) 2011 InvenSense Corporation, All Rights Reserved. 4 $ 5 */ 6 7 /******************************************************************************* 8 * 9 * $Id: testsupport.h 5629 2011-06-11 03:13:08Z mcaramello $ 10 * 11 ******************************************************************************/ 12 13 #ifndef _TESTSUPPORT_H_ 14 #define _TESTSUPPORT_H_ 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 /*--------------------------- 21 Includes 22 ---------------------------*/ 23 24 #include "mltypes.h" 25 #include "mlerrorcode.h" 26 27 #include "mlsl.h" 28 #include "log.h" 29 30 /*--------------------------- 31 Defines 32 ---------------------------*/ 33 34 /*--------------------------- 35 p-Types 36 ---------------------------*/ 37 #ifdef TESTING_SUPPORT 38 void SetHandle (void *sl_handle); 39 void CommandPrompt (void *sl_handle); 40 void RegisterMap (void *sl_handle); 41 void DataLogger (const unsigned long flag); 42 void DataLoggerSelector (const unsigned long flag); 43 void DataLoggerCb (void); 44 unsigned short KeyboardHandler (unsigned char key); 45 char* CompassStateName (char* out, int state); 46 #else 47 #define DataLoggerSelector(x) // 48 #define DataLogger(x) // 49 #define DataLoggerCb NULL 50 #endif 51 52 #ifdef __cplusplus 53 } 54 #endif 55 56 #endif // _TESTSUPPORT_H_ 57 58