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 | d21d68fd36ba0ab1192f2707fbffdd6c778a4d9a (patch) | |
| tree | 6b4194f6fa74b5b7c9f5b6ace56e3454f7ee2aab /libmaple/usb/usb.h | |
| parent | ef5efb025b1dc762d5a0d7ed1c46e97c6b7f8319 (diff) | |
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); |
