From c63871ac816955469c7178eed3467de52d4c05e7 Mon Sep 17 00:00:00 2001 From: henryk Date: Sun, 18 Nov 2007 00:04:42 +0000 Subject: 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 --- openpicc/application/usb_print.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 openpicc/application/usb_print.h (limited to 'openpicc/application/usb_print.h') 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_*/ -- cgit v1.2.3