summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_Original_Port/include/smartmedia.hch
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-12-09 13:44:56 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-12-09 13:44:56 (GMT)
commit593d5fded11b8723ce27883e06865ab205c6f008 (patch)
tree1f25584a40a2f24861464f0e6ea5416db7951514 /Graphic_Equalizer_Original_Port/include/smartmedia.hch
parent2b08ad7b3243965c832960b8089013cd1f6f46f3 (diff)
downloadTASS-593d5fded11b8723ce27883e06865ab205c6f008.zip
TASS-593d5fded11b8723ce27883e06865ab205c6f008.tar.gz
TASS-593d5fded11b8723ce27883e06865ab205c6f008.tar.bz2
Phase 1: Original Port Completed.
Recommended additions: add and update (doxygen) documentation
Diffstat (limited to 'Graphic_Equalizer_Original_Port/include/smartmedia.hch')
-rw-r--r--Graphic_Equalizer_Original_Port/include/smartmedia.hch68
1 files changed, 68 insertions, 0 deletions
diff --git a/Graphic_Equalizer_Original_Port/include/smartmedia.hch b/Graphic_Equalizer_Original_Port/include/smartmedia.hch
new file mode 100644
index 0000000..8cd87c0
--- /dev/null
+++ b/Graphic_Equalizer_Original_Port/include/smartmedia.hch
@@ -0,0 +1,68 @@
+/*! \file smartmedia.hch
+ *
+ * \section generic SmartMedia API
+ *
+ * \section project Project information.
+ * Project Graphic Equalizer\n
+ * \author O.M. Schinagl
+ * \date 20041110
+ * \version 0.1
+ *
+ * \section copyright Copyright
+ * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
+ *
+ * \section history Change history
+ * 20041110: O.M. Schinagl\n Initial version
+ *
+ ********************************************************************/
+
+#ifndef _SMARTMEDIA_HCH
+#define _SMARTMEDIA_HCH 1
+
+
+
+/*
+ * SmartMedia functioncalls a bit to be set to either Read or Write. This
+ * define should make life easier identifying which one is what.
+ */
+#define READ 0
+#define WRITE 1
+
+
+
+/*
+ * The different stages the smart media loaders knows.
+ */
+#define STAGE_LOAD_SKIN 0x00
+#define STAGE_LOAD_HELP 0x01
+#define STAGE_LOAD_GRAPH 0x02
+#define STAGE_LOAD_PRESET 0x03
+
+
+
+/*
+ * Create a define to keep API generic
+ * FIXME: replace with PAL calls when avaiable.
+ */
+#define CPLDRun(ClockRate) RC200CPLDRun(ClockRate)
+#define SmartMediaRun(ClockRate) RC200SmartMediaRun(ClockRate)
+
+
+
+/*
+ * Initializes the smartmedia device.
+ */
+
+unsigned 1 smartmedia_init(void);
+
+
+
+/*
+ * This function loads the memory with data from the smartmedia card.
+ */
+void smartmedia_loaddata(skindata_t *skindata);
+
+#else
+#error "ERROR file smartmedia.hch multiple times included"
+#endif /* --- _SMARTMEDIA_HCH --- */
+