aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/usb.h
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-03-31 08:52:45 +0800
committeriperry <iperry@gmail.com>2010-03-31 09:43:10 +0800
commit1d3861ef93f8423176c6010ab606abdab00a7cbd (patch)
tree5c95101e295bcfdd7f9f4292ce9204ddf7e7f662 /src/lib/usb.h
parent8d6bf3b196c2a0bc1adda4a04669e54fdc5b65cb (diff)
downloadlibrambutan-1d3861ef93f8423176c6010ab606abdab00a7cbd.tar.gz
librambutan-1d3861ef93f8423176c6010ab606abdab00a7cbd.zip
Major hierarchy reorganization; see README.
copy-to-ide and Makefile updated to conform; .gitignore added; LICENSE added
Diffstat (limited to 'src/lib/usb.h')
-rw-r--r--src/lib/usb.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/usb.h b/src/lib/usb.h
deleted file mode 100644
index 3b7a971..0000000
--- a/src/lib/usb.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef _USB_H_
-#define _USB_H_
-
-#include <inttypes.h>
-#include "util.h"
-#include "cortexm3_macro.h"
-#include "usb_regs.h"
-#include "bootVect.h"
-
-#define USB_ISR_ADDR (0x08000090)
-#define USB_SERIAL_ENDP_TXADDR ((uint32_t) 0xC0)
-#define USB_SERIAL_ENDP_RXADDR ((uint32_t) 0x110)
-#define USB_SERIAL_ENDP_TX ((uint16_t) 0x1)
-#define USB_SERIAL_ENDP_RX ((uint16_t) 0x3)
-#define USB_SERIAL_BUF_SIZE (0x40)
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void usb_lpIRQHandler(void);
-void usb_userToPMABufferCopy(u8 *pbUsrBuf,u16 wPMABufAddr,u16 wNBytes);
-void usb_PMAToUserBufferCopy(u8 *pbUsrBuf,u16 wPMABufAddr,u16 wNBytes);
-void usb_serialWriteStr(const char *outStr);
-void usb_serialWriteChar(unsigned char ch);
-uint8_t usb_serialGetRecvLen();
-void usb_copyRecvBuffer(unsigned char* dest, uint8_t len);
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-#endif //_USB_H