aboutsummaryrefslogtreecommitdiff
path: root/src/include/gdb_if.h
diff options
context:
space:
mode:
authorUwe Bonnes2013-01-20 21:47:03 +0100
committerUwe Bonnes2013-01-21 11:02:44 +0100
commit749fb318e78b89584af000f4e2b41dce013a6fc3 (patch)
treeee18cb0b46eca94c5aaf39cd365b1b8bf9abf453 /src/include/gdb_if.h
parent1fa961841dd9a6abd3ad50106f59b2e18eeccb77 (diff)
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
Diffstat (limited to 'src/include/gdb_if.h')
-rw-r--r--src/include/gdb_if.h3
1 files changed, 3 insertions, 0 deletions
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 <libopencm3/usb/usbd.h>
+
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);