aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-08-03 23:39:04 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-08-04 00:18:01 -0400
commit770a072e16a410511e0e2fa88dbde23bb0a8ba24 (patch)
treeb1beecc107d9e13b3c5b69588d71b265ddbb2f78 /libmaple/include
parente5b44c156519598721979fd6cfa9f516198fc4f0 (diff)
downloadlibrambutan-770a072e16a410511e0e2fa88dbde23bb0a8ba24.tar.gz
librambutan-770a072e16a410511e0e2fa88dbde23bb0a8ba24.zip
usb_cdcacm: various fixups.
Mark internal state static. Properly reset the RX/TX state on USB reset. Choose better names for countTx and newBytes. Move the exposed configuration back into the .c; this information is not beneficial to hooks. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/usb_cdcacm.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/libmaple/include/libmaple/usb_cdcacm.h b/libmaple/include/libmaple/usb_cdcacm.h
index 2cb3ad4..5ceecc3 100644
--- a/libmaple/include/libmaple/usb_cdcacm.h
+++ b/libmaple/include/libmaple/usb_cdcacm.h
@@ -42,31 +42,6 @@ extern "C" {
#endif
/*
- * Exposed configuration
- */
-
-#define USB_CDCACM_CTRL_EPNUM 0x00
-#define USB_CDCACM_CTRL_RX_ADDR 0x40
-#define USB_CDCACM_CTRL_TX_ADDR 0x80
-#define USB_CDCACM_CTRL_EPSIZE 0x40
-
-#define USB_CDCACM_TX_ENDP 1
-#define USB_CDCACM_TX_EPNUM 0x01
-#define USB_CDCACM_TX_ADDR 0xC0
-#define USB_CDCACM_TX_EPSIZE 0x40
-
-#define USB_CDCACM_MANAGEMENT_ENDP 2
-#define USB_CDCACM_MANAGEMENT_EPNUM 0x02
-#define USB_CDCACM_MANAGEMENT_ADDR 0x100
-#define USB_CDCACM_MANAGEMENT_EPSIZE 0x40
-
-#define USB_CDCACM_RX_ENDP 3
-#define USB_CDCACM_RX_EPNUM 0x03
-#define USB_CDCACM_RX_ADDR 0x110
-#define USB_CDCACM_RX_EPSIZE 0x40
-#define USB_CDCACM_RX_BUFLEN (USB_CDCACM_RX_EPSIZE*3)
-
-/*
* CDC ACM Requests
*/