/************************************************************************/
/* Copyright 2012 MBARI							*/
/************************************************************************/
/* Summary  : Command-line definitions file for Invensense MotionApps on CF2*/
/* Filename : cf2defs.h							*/
/* Author   : Robert Herlien (rah)					*/
/* Project  : BEDS							*/
/* Revision : 1.0							*/
/* Created  : 04/18/2012						*/
/*									    */
/* MBARI provides this documentation and code "as is", with no warranty,    */
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium  */
/* Research Institute to assist in its use, correction, modification, or    */
/* enhancement. This information should not be published or distributed to  */
/* third parties without specific written permission from MBARI.            */
/*									    */
/************************************************************************/
/* This file was written for the Invensense MotionApps library port to	*/
/* Persistor CF2.  This version is for the BEDS app on the BEDS		*/
/* motherboard.								*/
/* The stupid Metrowerks compiler for CF2 doesn't have the ability to	*/
/* accept command-line definitions in "-Ddef" format, standard on nearly*/
/* all C compilers.  Instead, there's a single header that can be included*/
/* as the "C/C++ Language Prefix File" in the IDE.  This Prefix File	*/
/* is normally set to mxcfxstd.h for most Persistor applications.	*/
/* In our case, we set it to this file, and then this file includes	*/
/* mxcfxstd.h. 								*/
/************************************************************************/
/* Modification History:						*/
/* 18apr2012 rah - created
*/
/************************************************************************/

#ifndef INCcf2defsh
#define INCcf2defsh		1

#include <mxcfxstd.h>

#define UMPL
#define BIG_ENDIAN
#define INV_UMPL		1
#define UMPL_TARGET_CF2
#define UMPL_ELIMINATE_ADVFUSION
#define CONFIG_MPU_SENSORS_MPU6050B1
#define INV_FEATURE_GYROTC_UTC
#define DMPDEFAULT_UNSORTEDKEYLOOKUP
#define INV_CACHE_DMP		0
#define UMPL_ENABLE_TEMPCOMP
#define CONFIG_MPU_SENSORS_AK8975
#define UMPL_ELIMINATE_64BIT

#define atan2f(x,y)	((float)atan2((double)x, (double)y))
#define sqrtf(x)	((float)sqrt((double)x))

/* For the ADS8344 SHDN pin on the BEDS motherboard */
#define NOT_R216_RECIPECARD
#define AD_REF_SHDN_PIN		22

/* To enable Watchdog timer, define WATCHDOG	*/
//#define WATCHDOG

#ifdef WATCHDOG
extern short	CustomSYPCR;
#define		CUSTOM_SYPCR	CustomSYPCR	// used in CFxPicoPreMain.c
#endif

#endif	/* INCcf2defsh */
