summaryrefslogtreecommitdiff
path: root/tinyusb/device/dcd.h
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/device/dcd.h
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/device/dcd.h')
-rw-r--r--tinyusb/device/dcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h
index be139b713..b6d2f6bd5 100644
--- a/tinyusb/device/dcd.h
+++ b/tinyusb/device/dcd.h
@@ -62,6 +62,10 @@ tusb_error_t dcd_controller_reset(uint8_t coreid) ATTR_WARN_UNUSED_RESULT;
void dcd_controller_connect(uint8_t coreid);
void dcd_isr(uint8_t coreid);
+void dcd_pipe_control_write_zero_length(uint8_t coreid);
+tusb_error_t dcd_endpoint_configure(uint8_t coreid, tusb_descriptor_endpoint_t const * p_endpoint_desc) ATTR_WARN_UNUSED_RESULT;
+void dcd_device_set_address(uint8_t coreid, uint8_t dev_addr);
+
#ifdef __cplusplus
}
#endif