summaryrefslogtreecommitdiff
path: root/openpicc/application/main.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-18 00:04:42 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-18 00:04:42 +0000
commitc63871ac816955469c7178eed3467de52d4c05e7 (patch)
tree8ffa8e44f370baafb1be5af8de107e0b19609a9a /openpicc/application/main.c
parentac0ed9df3ba3fdacf7d3afa1e612f33f86144f35 (diff)
Add (ring-)buffered print functions to enable debug output from IRQ handlers or similar situations
git-svn-id: https://svn.openpcd.org:2342/trunk@330 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/main.c')
-rw-r--r--openpicc/application/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpicc/application/main.c b/openpicc/application/main.c
index eb51aeb..fd776ec 100644
--- a/openpicc/application/main.c
+++ b/openpicc/application/main.c
@@ -46,6 +46,7 @@
#include "tc_cdiv.h"
#include "tc_cdiv_sync.h"
#include "tc_fdt.h"
+#include "usb_print.h"
/**********************************************************************/
static inline void prvSetupHardware (void)
@@ -79,12 +80,14 @@ void vApplicationIdleHook(void)
//vLedSetGreen(0);
disabled_green = 1;
}
+ usb_print_flush();
}
/**********************************************************************/
int main (void)
{
prvSetupHardware ();
+ usb_print_init();
pio_irq_init();
personal git repositories of Harald Welte. Your mileage may vary