diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-10-21 17:50:39 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-10-21 18:13:05 -0400 |
commit | 1e51e683e3321256c07c146bdd0e3d246be31c34 (patch) | |
tree | 6b4194f6fa74b5b7c9f5b6ace56e3454f7ee2aab /libmaple/usb/usb.h | |
parent | 298494be23f188b8dba8b8322898e1de50963147 (diff) | |
download | librambutan-1e51e683e3321256c07c146bdd0e3d246be31c34.tar.gz librambutan-1e51e683e3321256c07c146bdd0e3d246be31c34.zip |
USB: API cleanups.
Remove usbSuspend(), usbResumeInit(), usbResume(), the USB
low-priority IRQ, and usbWaitReset() from usb.h. Also remove
RESUME_STATE since it was only there for usbResume().
These functions don't need to be seen by anybody except for usb.c and
usb_cdcacm.c, so move them there (altering their names to fit with
libmaple style guidelines) and mark them static.
Clean up includes in usb.c while we're there.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/usb/usb.h')
-rw-r--r-- | libmaple/usb/usb.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libmaple/usb/usb.h b/libmaple/usb/usb.h index 077128f..988c923 100644 --- a/libmaple/usb/usb.h +++ b/libmaple/usb/usb.h @@ -66,27 +66,8 @@ extern usblib_dev *USBLIB; * Convenience routines, etc. */ -typedef enum { - RESUME_EXTERNAL, - RESUME_INTERNAL, - RESUME_LATER, - RESUME_WAIT, - RESUME_START, - RESUME_ON, - RESUME_OFF, - RESUME_ESOF -} RESUME_STATE; - void usb_init_usblib(void (**ep_int_in)(void), void (**ep_int_out)(void)); -void usbSuspend(void); -void usbResumeInit(void); -void usbResume(RESUME_STATE); - -/* overloaded ISR routine, this is the main usb ISR */ -void __irq_usb_lp_can_rx0(void); -void usbWaitReset(void); - uint8 usbIsConnected(void); uint8 usbIsConfigured(void); |