From 749fb318e78b89584af000f4e2b41dce013a6fc3 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 20 Jan 2013 21:47:03 +0100 Subject: gdb_if: Use a doubled buffer scheme for reading data from USB Needed, as the OTG driver erases the data read after eventually calling the callback --- src/include/gdb_if.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/gdb_if.h') diff --git a/src/include/gdb_if.h b/src/include/gdb_if.h index 930a3d6..0d6a602 100644 --- a/src/include/gdb_if.h +++ b/src/include/gdb_if.h @@ -21,7 +21,10 @@ #ifndef __GDB_IF_H #define __GDB_IF_H +#include + int gdb_if_init(void); +void gdb_usb_out_cb(usbd_device *dev, uint8_t ep); unsigned char gdb_if_getchar(void); unsigned char gdb_if_getchar_to(int timeout); void gdb_if_putchar(unsigned char c, int flush); -- cgit v1.2.3