aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usb/usb_callbacks.h
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-12-14 00:48:13 -0500
committerAJM <poslathian@poslathian.(none)>2010-12-14 00:48:13 -0500
commit40573207a2a5d17110c58a8d4051a4f2804b960a (patch)
tree76cd1f2ad41dddeb8f0eb426bda95c4ab4716f2a /libmaple/usb/usb_callbacks.h
parent125cbc814bc032ba217e8c10e0ceb43981126ce3 (diff)
downloadlibrambutan-40573207a2a5d17110c58a8d4051a4f2804b960a.tar.gz
librambutan-40573207a2a5d17110c58a8d4051a4f2804b960a.zip
changed the serialusb to be simplest possible design
no longer use a ring buffer. No longer double buffer a local rx buffer and the packet memory. Instead, we read out of packet memory and block it for all reads. This is going to be slower. but it tests OK (unlike the old one...).
Diffstat (limited to 'libmaple/usb/usb_callbacks.h')
-rw-r--r--libmaple/usb/usb_callbacks.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/usb/usb_callbacks.h b/libmaple/usb/usb_callbacks.h
index 21ceb77..20d2c13 100644
--- a/libmaple/usb/usb_callbacks.h
+++ b/libmaple/usb/usb_callbacks.h
@@ -39,6 +39,7 @@ extern uint8 vcomBufferRx[VCOM_RX_BUFLEN]; /* no reason this has to be VCOM_RX_
extern volatile uint32 recvBufIn; /* the FIFO in index to the recvbuffer */
extern volatile uint32 recvBufOut; /* the FIFO out index to the recvbuffer */
extern volatile uint32 maxNewBytes;
+extern volatile uint32 newBytes;
void vcomDataTxCb(void);
void vcomDataRxCb(void);