summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/configuration.hch
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-11-01 15:08:38 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-11-01 15:08:38 (GMT)
commit495b53f424ba517f6f37cfcb45ff8905b9a972d9 (patch)
tree6ed2b77f48a0bed292761eeed5d2fea49dab28d1 /Graphic_Equalizer/include/configuration.hch
parentc515ffa43d033a2e49c5bfab71ee75dc1721958a (diff)
downloadTASS-495b53f424ba517f6f37cfcb45ff8905b9a972d9.zip
TASS-495b53f424ba517f6f37cfcb45ff8905b9a972d9.tar.gz
TASS-495b53f424ba517f6f37cfcb45ff8905b9a972d9.tar.bz2
Created Initial Configuration file and added Current SmartMedia Data.
The display routine has been updated to draw whatever is currently in the ram.
Diffstat (limited to 'Graphic_Equalizer/include/configuration.hch')
-rw-r--r--Graphic_Equalizer/include/configuration.hch83
1 files changed, 83 insertions, 0 deletions
diff --git a/Graphic_Equalizer/include/configuration.hch b/Graphic_Equalizer/include/configuration.hch
new file mode 100644
index 0000000..f256886
--- /dev/null
+++ b/Graphic_Equalizer/include/configuration.hch
@@ -0,0 +1,83 @@
+/*! \file configuration.hch
+ *
+ * \section generic Configuration for the entire application
+ *
+ * \section project Project information.
+ * Project Graphic Equalizer\n
+ * \author O.M. Schinagl
+ * \date 20041101
+ * \version 0.1
+ *
+ * \section copyright Copyright
+ * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
+ *
+ * \section history Change history
+ * 20041101: O.M. Schinagl\n Initial version
+ *
+ ********************************************************************/
+
+#ifndef _CONFIGURATION_HCH
+#define _CONFIGURATION_HCH 1
+
+/*
+ * Data can be arranged in two ways. Either as one large blok of continuous
+ * data, or each segment is stored seperatly at its own address. If set to 1
+ * we'll asume one large continuous blok.
+ */
+#define LARGE_DATA_BLOCK 1
+
+
+
+/*
+ * Here we set the various sizes of the data in use. Do not round this values
+ * in anyway! For example, 640 pixels times 480 pixels is 307200 (4b000) pixels
+ * total.
+ */
+#define SIZE_SKIN 0x04b000
+#define SIZE_HELP 0x04b000
+#define SIZE_MASK_SKIN 0x019000
+#define SIZE_MASK_HELP 0x019000
+
+
+
+/*
+ * Here we setup the start and end address for the various components.
+ * NOTE: The Help image starts at the same address because we intend to use the
+ * second rambank for this image.
+ */
+#define ADDR_SKIN_START 0x000000
+#define ADDR_SKIN_END (ADDR_SKIN_START +SIZE_SKIN)
+
+#define ADDR_HELP_START 0x000000
+#define ADDR_HELP_END (ADDR_HELP_START +SIZE_HELP)
+
+#if LARGE_DATA_BLOCK
+ #define SM_ADDR_OFFSET 0x084000
+
+ #define SM_ADDR_SKIN_START SM_ADDR_OFFSET
+ #define SM_ADDR_SKIN_END (SM_ADDR_SKIN_START +(SIZE_SKIN *3))
+ #define SM_ADDR_SKIN_MASK_START (SM_ADDR_SKIN_END +1)
+ #define SM_ADDR_SKIN_MASK_END (SM_ADDR_OFFSET +SIZE_MASK_SKIN)
+
+ #define SM_ADDR_HELP_START (SM_ADDR_SKIN_MASK_END +1)
+ #define SM_ADDR_HELP_END (SM_ADDR_HELP_START +(SIZE_HELP *3))
+ #define SM_ADDR_HELP_MASK_START (SM_ADDR_HELP_END +1)
+ #define SM_ADDR_HELP_MASK_END (SM_ADDR_OFFSET +SIZE_MASK_HELP)
+#else
+ #define SM_ADDR_SKIN_START 0x084000
+ #define SM_ADDR_SKIN_MASK_START 0x168000
+ #define SM_ADDR_HELP_START 0x000000
+ #define SM_ADDR_HELP_START 0x000000
+
+ #define SM_ADDR_SKIN_END (SM_ADDR_SKIN_START +(SIZE_SKIN *3))
+ #define SM_ADDR_SKIN_MASK_END (SM_ADDR_SKIN_END +(SIZE_MASK_SKIN *3))
+ #define SM_ADDR_HELP_END (SM_ADDR_HELP_START +(SIZE_HELP *3))
+ #define SM_ADDR_HELP_MASK_END (SM_ADDR_SKIN_MASK_END +(SIZE_MASK_HELP *3))
+#endif
+
+
+#else
+#error "ERROR file configuration.hch multiple times included"
+#endif /* --- _CONFIGURATION_HCH --- */
+
+