summaryrefslogtreecommitdiff
path: root/firmware/src/pcd
diff options
context:
space:
mode:
authormeri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-04-10 17:48:14 +0000
committermeri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-04-10 17:48:14 +0000
commit1092475d16ab1db7f6f46616d1b5840064664239 (patch)
treedae5ea5fddb8a5ea040a15da296a7f24a46615d5 /firmware/src/pcd
parent98f3bcf710fccafb0cc8a4abc43cfc92636ddb07 (diff)
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
Diffstat (limited to 'firmware/src/pcd')
-rw-r--r--firmware/src/pcd/main_dumbreader.c13
1 files changed, 12 insertions, 1 deletions
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();
personal git repositories of Harald Welte. Your mileage may vary