summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/src
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-10-13 13:34:18 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-10-13 13:34:18 (GMT)
commit0b278572eee35e5101ed757015cc0a957af87629 (patch)
tree8c00efd13c0f8a5131b54949a724672850b0fe05 /Graphic_Equalizer/src
parente3291712017e6cc0300f616fe4a74438e1791cc0 (diff)
downloadTASS-0b278572eee35e5101ed757015cc0a957af87629.zip
TASS-0b278572eee35e5101ed757015cc0a957af87629.tar.gz
TASS-0b278572eee35e5101ed757015cc0a957af87629.tar.bz2
Diffstat (limited to 'Graphic_Equalizer/src')
-rw-r--r--Graphic_Equalizer/src/display/display.hcc46
-rw-r--r--Graphic_Equalizer/src/display/main.hcc (renamed from Graphic_Equalizer/src/main.hcc)15
-rw-r--r--Graphic_Equalizer/src/display/mousedriver.hcc2
-rw-r--r--Graphic_Equalizer/src/display/mousedriver.hch40
4 files changed, 58 insertions, 45 deletions
diff --git a/Graphic_Equalizer/src/display/display.hcc b/Graphic_Equalizer/src/display/display.hcc
new file mode 100644
index 0000000..7c7f9e9
--- /dev/null
+++ b/Graphic_Equalizer/src/display/display.hcc
@@ -0,0 +1,46 @@
+/*! \file display.hcc
+ *
+ * \section generic Message build up information and more
+ *
+ * \section project Project information.
+ * Project Graphic Equalizer\n
+ * \author O.M. Schinagl
+ * \date 20041011
+ * \version 0.1
+ *
+ * \section copyright Copyright
+ * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
+ *
+ * \section history Change history
+ * 20041011: O.M. Schinagl\n Initial version
+ *
+ ********************************************************************/
+
+/******** System Includes *************/
+#include <stdlib.hch>
+
+#include "pal_master.hch"
+#include "pal_mouse.hch"
+
+/******** Application Includes ********/
+#include "display.hch"
+
+
+
+/*! \fn void display_main(VideoOut);
+ * \brief This routine handles all drawing of pixels. It never returns!
+ *
+ * \param VideoOut this function takes the VideoOut macro pointer
+ * PalVideoOutOptimalCT(ClockRate). For efficiency
+ * reasons it is passed along however.
+ *
+ * \return void
+ * \retval void
+ */
+static macro expr display_main(VideoOut) {
+ unsigned 24 pixel;
+
+ for (Pixel = 0;; Pixel++) {
+ PalVideoOutWrite(VideoOut, Pixel);
+ }
+} /* --- display_main() --- */
diff --git a/Graphic_Equalizer/src/main.hcc b/Graphic_Equalizer/src/display/main.hcc
index bbf8ee6..82843b6 100644
--- a/Graphic_Equalizer/src/main.hcc
+++ b/Graphic_Equalizer/src/display/main.hcc
@@ -24,9 +24,11 @@
#define PAL_TARGET_CLOCK_RATE 25175000
/******** System Includes *************/
+#include "pal_master.hch"
+#include "pal_mouse.hch"
/******** Application Includes ********/
-
+#include "display.hch"
#include "mousedriver.hch"
@@ -65,15 +67,20 @@ void main(void) {
* VideoOutput needs to be in sync with the touchscreen and
* need to run in sync.
*/
- /*display_run(VideoOut, ClockRate);*/
+ display_run(VideoOut, ClockRate);
mouse_run(ClockRate);
/* Parallel to our Primary tasks we run the application. */
seq {
- /*display_init(ClockRate);*/
+ /* But first we need to initialize the display */
+ display_init(ClockRate);
par {
+ /*
+ * From here we run the mouse driver and
+ * display parallel.
+ */
mouse_main();
- /*display_main();*/
+ display_main();
}
}
}
diff --git a/Graphic_Equalizer/src/display/mousedriver.hcc b/Graphic_Equalizer/src/display/mousedriver.hcc
index f39a97e..3d9e599 100644
--- a/Graphic_Equalizer/src/display/mousedriver.hcc
+++ b/Graphic_Equalizer/src/display/mousedriver.hcc
@@ -21,10 +21,10 @@
/******** System Includes *************/
#include <stdlib.hch>
-/******** Application Includes ********/
#include "pal_master.hch"
#include "pal_mouse.hch"
+/******** Application Includes ********/
#include "mousedriver.hch"
/*
diff --git a/Graphic_Equalizer/src/display/mousedriver.hch b/Graphic_Equalizer/src/display/mousedriver.hch
deleted file mode 100644
index a788497..0000000
--- a/Graphic_Equalizer/src/display/mousedriver.hch
+++ /dev/null
@@ -1,40 +0,0 @@
-/*! \file mousedriver.hch
- *
- * \section generic Mousedriver API
- *
- * \section project Project information.
- * Project Graphic Equalizer\n
- * \author
- * \date 20041011
- * \version 0.1
- *
- * \section copyright Copyright
- * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
- *
- * \section history Change history
- * 20041011: \n Initial version
- *
- ********************************************************************/
-
-#ifndef _MOUSEDRIVER_HCH
-#define _MOUSEDRIVER_HCH 1
-
-
-
-/*
- * Create a define to keep API generic
- */
-#define mouse_run(ClockRate) RC200TouchScreenRun(ClockRate)
-
-
-
-/*
- * Main mousedriver loop. This function never returns! It handles mouse input,
- * updates the shared memory and notifies listeners.
- */
-void mouse_main(void);
-
-#else
-#error "ERROR file mousedriver.hch multiple times included"
-#endif /* --- _MOUSEDRIVER_HCH --- */
-