summaryrefslogtreecommitdiff
path: root/openpicc/application/usb_print.h
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/usb_print.h
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/usb_print.h')
-rw-r--r--openpicc/application/usb_print.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/openpicc/application/usb_print.h b/openpicc/application/usb_print.h
new file mode 100644
index 0000000..9186dc9
--- /dev/null
+++ b/openpicc/application/usb_print.h
@@ -0,0 +1,15 @@
+#ifndef USB_PRINT_H_
+#define USB_PRINT_H_
+
+extern void usb_print_buffer(const char* buffer, int start, int stop);
+extern int usb_print_buffer_f(const char* buffer, int start, int stop, int flush);
+extern void usb_print_string(const char *string);
+extern int usb_print_string_f(const char* string, int flush);
+extern void usb_print_char(const char c);
+extern int usb_print_char_f(const char c, int flush);
+extern void usb_print_flush(void);
+extern int usb_print_get_default_flush(void);
+extern int usb_print_set_default_flush(int flush);
+extern void usb_print_init(void);
+
+#endif /*USB_PRINT_H_*/
personal git repositories of Harald Welte. Your mileage may vary