aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usb/usb_callbacks.c
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-15 17:28:05 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-10-18 13:30:17 -0400
commit4c73571eac60dd16103157d484ce4d0f53f91ae5 (patch)
tree50f8e1b96a9de18e559ae560f3a00849d44b5b52 /libmaple/usb/usb_callbacks.c
parentd85462d0517baac39f3c316924162cca3d9c785a (diff)
downloadlibrambutan-4c73571eac60dd16103157d484ce4d0f53f91ae5.tar.gz
librambutan-4c73571eac60dd16103157d484ce4d0f53f91ae5.zip
Remove usb_hardware.c and usb_hardware.h.
These files contain a lot of duplicated and unused code. Move the relevant pieces that need to survive into usb.c and usb_callbacks.c. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/usb/usb_callbacks.c')
-rw-r--r--libmaple/usb/usb_callbacks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmaple/usb/usb_callbacks.c b/libmaple/usb/usb_callbacks.c
index b2edd8a..72f97ad 100644
--- a/libmaple/usb/usb_callbacks.c
+++ b/libmaple/usb/usb_callbacks.c
@@ -7,7 +7,10 @@
#include "descriptors.h"
#include "usb_config.h"
#include "usb.h"
-#include "usb_hardware.h"
+
+/* macro'd register and peripheral definitions */
+#define EXC_RETURN 0xFFFFFFF9
+#define DEFAULT_CPSR 0x61000000
ONE_DESCRIPTOR Device_Descriptor = {
(uint8*)&usbVcomDescriptor_Device,