summaryrefslogtreecommitdiff
path: root/tinyusb/core
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-06-08 02:50:10 +0700
committerhathach <[email protected]>2013-06-08 02:50:10 +0700
commit503d279af58538f8c00966c48f3ff862f4cde2a0 (patch)
tree586a83a4697fbd74aab640ca861705563785d0c0 /tinyusb/core
parente3bb5e9f2fcdf2d5f3e224ede4a85d38276dc462 (diff)
ADDING LPC176X device
implementing dcd_lpc175x_6x.c add usbd_dcd.h add usbd_isr with TUSB_EVENT_SETUP_RECEIVED & TUSB_EVENT_BUS_RESET event parameterize TUSB_CFG_DEVICE_CONTROL_PACKET_SIZE (replace USB_MAX_PACKET0) --> able to get interrupt and receive setup packet, but SET ADDRESS (expected get device descriptor). uncomment write zero length will cause issue, no more interrupt ?
Diffstat (limited to 'tinyusb/core')
-rw-r--r--tinyusb/core/tusb_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h
index 75705dbe3..35cb07cd8 100644
--- a/tinyusb/core/tusb_types.h
+++ b/tinyusb/core/tusb_types.h
@@ -194,7 +194,10 @@ typedef enum {
TUSB_EVENT_XFER_COMPLETE,
TUSB_EVENT_XFER_ERROR,
TUSB_EVENT_INTERFACE_OPEN,
- TUSB_EVENT_INTERFACE_CLOSE
+ TUSB_EVENT_INTERFACE_CLOSE,
+
+ TUSB_EVENT_BUS_RESET, // TODO refractor
+ TUSB_EVENT_SETUP_RECEIVED,
}tusb_event_t;
enum {