From 1092475d16ab1db7f6f46616d1b5840064664239 Mon Sep 17 00:00:00 2001
From: meri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>
Date: Tue, 10 Apr 2007 17:48:14 +0000
Subject: added blinking green LED to visualize USB inner loop activity -
 important to verify that OpenPCD is stil lrunning

git-svn-id: https://svn.openpcd.org:2342/trunk@298 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
---
 firmware/src/pcd/main_dumbreader.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'firmware/src/pcd')

diff --git a/firmware/src/pcd/main_dumbreader.c b/firmware/src/pcd/main_dumbreader.c
index dab4d77..62695f0 100644
--- a/firmware/src/pcd/main_dumbreader.c
+++ b/firmware/src/pcd/main_dumbreader.c
@@ -22,6 +22,7 @@
 #include <include/openpcd.h>
 #include <os/dbgu.h>
 #include "rc632.h"
+#include "rc632_highlevel.h"
 #include <os/led.h>
 #include <os/pcd_enumerate.h>
 #include <os/usb_handler.h>
@@ -33,7 +34,6 @@
 void _init_func(void)
 {
 	rc632_init();
-	rc632_test(RAH);
 }
 
 int _main_dbgu(char key)
@@ -63,6 +63,7 @@ int _main_dbgu(char key)
 		break;
 	case 'P':
 		rc632_power(1);
+		rc632_init();
 		break;
 	case 'p':
 		rc632_power(0);
@@ -74,6 +75,16 @@ int _main_dbgu(char key)
 
 void _main_func(void)
 {
+	static int i;
+	
+	if(i<4096)
+	    i++;
+	else
+	{
+	    led_toggle(1);
+	    i=0;
+	}
+	
 	/* first we try to get rid of pending to-be-sent stuff */
 	usb_out_process();
 
-- 
cgit v1.2.3