diff --git a/examples/CSL2_DAT_DEMO/csl2_legacy_include/csl_emifa.h b/examples/CSL2_DAT_DEMO/csl2_legacy_include/csl_emifa.h
+++ /dev/null
@@ -1,222 +0,0 @@
-/******************************************************************************\\r
-* Copyright (C) 2001 Texas Instruments Incorporated.\r
-* All Rights Reserved\r
-*------------------------------------------------------------------------------\r
-* FILENAME...... csl_emifa.h\r
-* DATE CREATED.. 03/27/2001 \r
-* LAST MODIFIED. 01/31/2002 SDCTL reg. setting after SDEXT reg.setting\r
-\******************************************************************************/\r
-#ifndef _CSL_EMIFA_H_\r
-#define _CSL_EMIFA_H_\r
-\r
-#include <csl_chip.h>\r
-#include <csl_irq.h>\r
-#include <csl_emifahal.h>\r
-\r
-\r
-#if (EMIFA_SUPPORT)\r
-/******************************************************************************\\r
-* scope and inline control macros\r
-\******************************************************************************/\r
-#ifdef __cplusplus\r
-#define CSLAPI extern "C" far\r
-#else\r
-#define CSLAPI extern far\r
-#endif\r
-\r
-#undef USEDEFS\r
-#undef IDECL\r
-#undef IDEF\r
-\r
-#ifdef _EMIFA_MOD_\r
- #define IDECL CSLAPI\r
- #define USEDEFS\r
- #define IDEF\r
-#else\r
- #ifdef _INLINE\r
- #define IDECL static inline\r
- #define USEDEFS\r
- #define IDEF static inline\r
- #else\r
- #define IDECL CSLAPI\r
- #endif\r
-#endif\r
-\r
-\r
-/******************************************************************************\\r
-* global macro declarations\r
-\******************************************************************************/\r
-\r
-\r
-/******************************************************************************\\r
-* global typedef declarations\r
-\******************************************************************************/\r
-\r
-/* device configuration structure */\r
-typedef struct {\r
- Uint32 gblctl;\r
- Uint32 cectl0;\r
- Uint32 cectl1;\r
- Uint32 cectl2;\r
- Uint32 cectl3;\r
- Uint32 sdctl;\r
- Uint32 sdtim;\r
- Uint32 sdext;\r
- Uint32 cesec0;\r
- Uint32 cesec1;\r
- Uint32 cesec2;\r
- Uint32 cesec3;\r
-} EMIFA_Config;\r
-\r
-\r
-/******************************************************************************\\r
-* global variable declarations\r
-\******************************************************************************/\r
-\r
-\r
-/******************************************************************************\\r
-* global function declarations\r
-\******************************************************************************/\r
-\r
-\r
-/******************************************************************************\\r
-* inline function declarations\r
-\******************************************************************************/\r
-#if C64_SUPPORT\r
-IDECL void EMIFA_config(EMIFA_Config *config);\r
-IDECL void EMIFA_configArgs(Uint32 gblctl, Uint32 cectl0, Uint32 cectl1,\r
- Uint32 cectl2, Uint32 cectl3, Uint32 sdctl, Uint32 sdtim, Uint32 sdext, Uint32 cesec0,\r
- Uint32 cesec1, Uint32 cesec2, Uint32 cesec3);\r
-IDECL void EMIFA_getConfig(EMIFA_Config *config);\r
-#endif\r
-\r
-/******************************************************************************\\r
-* inline function definitions\r
-\******************************************************************************/\r
-#ifdef USEDEFS\r
-/*----------------------------------------------------------------------------*/\r
-#if (C64_SUPPORT)\r
-IDEF void EMIFA_config(EMIFA_Config *config) {\r
-\r
- Uint32 gie;\r
- volatile Uint32 *base = (volatile Uint32 *)_EMIFA_BASE_GLOBAL;\r
- register int x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11;\r
-\r
- gie = IRQ_globalDisable();\r
-\r
- /* the compiler generates more efficient code if the loads */\r
- /* and stores are grouped together raher than intermixed */\r
- x0 = config->gblctl;\r
- x1 = config->cectl0;\r
- x2 = config->cectl1;\r
- x3 = config->cectl2;\r
- x4 = config->cectl3;\r
- x5 = config->sdctl;\r
- x6 = config->sdtim;\r
- x7 = config->sdext;\r
- x8 = config->cesec0;\r
- x9 = config->cesec1;\r
- x10 = config->cesec2;\r
- x11 = config->cesec3;\r
-\r
- base[_EMIFA_GBLCTL_OFFSET] = x0;\r
- base[_EMIFA_CECTL0_OFFSET] = x1;\r
- base[_EMIFA_CECTL1_OFFSET] = x2;\r
- base[_EMIFA_CECTL2_OFFSET] = x3;\r
- base[_EMIFA_CECTL3_OFFSET] = x4;\r
- \r
- base[_EMIFA_SDTIM_OFFSET] = x6;\r
- base[_EMIFA_SDEXT_OFFSET] = x7;\r
- base[_EMIFA_CESEC0_OFFSET] = x8;\r
- base[_EMIFA_CESEC1_OFFSET] = x9;\r
- base[_EMIFA_CESEC2_OFFSET] = x10;\r
- base[_EMIFA_CESEC3_OFFSET] = x11;\r
-\r
- base[_EMIFA_SDCTL_OFFSET] = x5;\r
-\r
- IRQ_globalRestore(gie);\r
-}\r
-#endif /* C64_SUPPORT */\r
-/*----------------------------------------------------------------------------*/\r
-#if C64_SUPPORT\r
-IDEF void EMIFA_configArgs(Uint32 gblctl, Uint32 cectl0, Uint32 cectl1,\r
- Uint32 cectl2, Uint32 cectl3, Uint32 sdctl, Uint32 sdtim, Uint32 sdext,\r
- Uint32 cesec0, Uint32 cesec1, Uint32 cesec2, Uint32 cesec3) {\r
-\r
- Uint32 gie;\r
- volatile Uint32 *base = (volatile Uint32 *)_EMIFA_BASE_GLOBAL;\r
-\r
- gie = IRQ_globalDisable();\r
-\r
- base[_EMIFA_GBLCTL_OFFSET] = gblctl;\r
- base[_EMIFA_CECTL0_OFFSET] = cectl0;\r
- base[_EMIFA_CECTL1_OFFSET] = cectl1;\r
- base[_EMIFA_CECTL2_OFFSET] = cectl2;\r
- base[_EMIFA_CECTL3_OFFSET] = cectl3;\r
- base[_EMIFA_SDTIM_OFFSET] = sdtim;\r
- base[_EMIFA_SDEXT_OFFSET] = sdext;\r
- base[_EMIFA_CESEC0_OFFSET] = cesec0;\r
- base[_EMIFA_CESEC1_OFFSET] = cesec1;\r
- base[_EMIFA_CESEC2_OFFSET] = cesec2;\r
- base[_EMIFA_CESEC3_OFFSET] = cesec3;\r
- base[_EMIFA_SDCTL_OFFSET] = sdctl;\r
-\r
- IRQ_globalRestore(gie);\r
-}\r
-#endif\r
-/*----------------------------------------------------------------------------*/\r
-#if (C64_SUPPORT)\r
-IDEF void EMIFA_getConfig(EMIFA_Config *config) {\r
-\r
- Uint32 gie;\r
- volatile Uint32 *base = (volatile Uint32 *)_EMIFA_BASE_GLOBAL;\r
- volatile EMIFA_Config* cfg = (volatile EMIFA_Config*)config;\r
- register int x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11;\r
-\r
- gie = IRQ_globalDisable();\r
-\r
- /* the compiler generates more efficient code if the loads */\r
- /* and stores are grouped together raher than intermixed */\r
-\r
- x0 = base[_EMIFA_GBLCTL_OFFSET];\r
- x1 = base[_EMIFA_CECTL0_OFFSET];\r
- x2 = base[_EMIFA_CECTL1_OFFSET];\r
- x3 = base[_EMIFA_CECTL2_OFFSET];\r
- x4 = base[_EMIFA_CECTL3_OFFSET];\r
-\r
- x6 = base[_EMIFA_SDTIM_OFFSET];\r
- x7 = base[_EMIFA_SDEXT_OFFSET];\r
- x8 = base[_EMIFA_CESEC0_OFFSET];\r
- x9 = base[_EMIFA_CESEC1_OFFSET];\r
- x10 = base[_EMIFA_CESEC2_OFFSET];\r
- x11 = base[_EMIFA_CESEC3_OFFSET];\r
-\r
- x5 = base[_EMIFA_SDCTL_OFFSET];\r
-\r
- cfg->gblctl = x0;\r
- cfg->cectl0 = x1;\r
- cfg->cectl1 = x2;\r
- cfg->cectl2 = x3;\r
- cfg->cectl3 = x4;\r
- cfg->sdctl = x5;\r
- cfg->sdtim = x6;\r
- cfg->sdext = x7;\r
- cfg->cesec0 = x8;\r
- cfg->cesec1 = x9;\r
- cfg->cesec2 = x10;\r
- cfg->cesec3 = x11;\r
-\r
- IRQ_globalRestore(gie);\r
-}\r
-#endif /* C64_SUPPORT */\r
-/*----------------------------------------------------------------------------*/\r
-/*----------------------------------------------------------------------------*/\r
-#endif /* USEDEFS */\r
-\r
-\r
-#endif /* EMIFA_SUPPORT */\r
-#endif /* _CSL_EMIF_H_ */\r
-/******************************************************************************\\r
-* End of csl_emifa.h\r
-\******************************************************************************/\r
-\r