aboutsummaryrefslogtreecommitdiffstats
path: root/core/usb/usb_callbacks.h
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-05-20 22:47:59 -0400
committerAJM <poslathian@poslathian.(none)>2010-05-20 22:47:59 -0400
commitdcc4c457f0cad15b9d60e8fc3afa913bacacdbc6 (patch)
treead805c404ec1414a330aad74fb833137a44ad136 /core/usb/usb_callbacks.h
parent3d0c8c9b374a9a2e3e9fb296cf8a89239106eea2 (diff)
downloadlibrambutan-dcc4c457f0cad15b9d60e8fc3afa913bacacdbc6.tar.gz
librambutan-dcc4c457f0cad15b9d60e8fc3afa913bacacdbc6.zip
moved the usb directory to its proper home in ./libmaple
also, removed some old usb file, bootVect.h, which setup the static table for the runtime usb lib that no longer exists and was provided by the bootloader rev 1
Diffstat (limited to 'core/usb/usb_callbacks.h')
-rw-r--r--core/usb/usb_callbacks.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/core/usb/usb_callbacks.h b/core/usb/usb_callbacks.h
deleted file mode 100644
index f8a2ef3..0000000
--- a/core/usb/usb_callbacks.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/* insert license */
-
-#ifndef __USB_CALLBACKS
-#define __USB_CALLBACKS
-
-#include "libmaple.h"
-#include "usb_lib.h"
-#include "usb_config.h"
-
-#define SET_LINE_CODING 0x20
-#define GET_LINE_CODING 0x21
-#define SET_COMM_FEATURE 0x02
-#define SET_CONTROL_LINE_STATE 0x22
-#define CONTROL_LINE_DTR (0x01)
-#define CONTROL_LINE_RTS (0x02)
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-typedef struct {
- uint32 bitrate;
- uint8 format;
- uint8 paritytype;
- uint8 datatype;
-} USB_Line_Coding;
-
-typedef enum {
- START,
- NDTR_NRTS,
- DTR_NRTS,
- RESET_NEXT,
- RESET_NOW
-} RESET_STATE;
-
-extern RESET_STATE reset_state; /* tracks DTR/RTS */
-extern uint8 countTx;
-extern uint8 vcomBufferRx[VCOM_RX_EPSIZE]; /* no reason this has to be VCOM_RX_EPSIZE, could be bigger */
-extern uint8 recvBufIn; /* the FIFO in index to the recvbuffer */
-extern uint8 recvBufOut; /* the FIFO out index to the recvbuffer */
-extern uint8 maxNewBytes;
-
-void vcomDataTxCb(void);
-void vcomDataRxCb(void);
-void vcomManagementCb(void);
-
-uint8* vcomGetSetLineCoding(uint16 length);
-void vcomSetLineSate(void);
-
-void usbInit(void);
-/* internal functions (as per the usb_core pProperty structure) */
-void usbInit(void);
-void usbReset(void);
-void usbStatusIn(void);
-void usbStatusOut(void);
-
-RESULT usbDataSetup(uint8 request);
-RESULT usbNoDataSetup(uint8 request);
-RESULT usbGetInterfaceSetting(uint8,uint8);
-
-uint8* usbGetDeviceDescriptor(uint16 length);
-uint8* usbGetConfigDescriptor(uint16 length);
-uint8* usbGetStringDescriptor(uint16 length);
-
-/* internal callbacks to respond to standard requests */
-void usbSetConfiguration(void);
-void usbSetDeviceAddress(void);
-
-#if defined(__cplusplus)
-}
-#endif
-
-
-#endif