summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-21 14:23:36 +0700
committerGitHub <[email protected]>2018-12-21 14:23:36 +0700
commit6ed96cb93b92acf7cce3bd6b84dc5cd8882486c4 (patch)
tree5bbe49af29735f6064ce1732afa8d88400b4e307 /src/device
parent27208ad2fdbd7af5080531eafd9a1a20515cedc1 (diff)
parent257d60fe1a2f72803fd7fa28cde691f5ca34a046 (diff)
Merge pull request #27 from hathach/devlocal
clean up & add dcd_get_frame_number()
Diffstat (limited to 'src/device')
-rw-r--r--src/device/dcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index 6b1356cbf..abd85a70b 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -93,12 +93,16 @@ TU_VERIFY_STATIC(sizeof(dcd_event_t) <= 12, "size is not correct");
/* Device API
*------------------------------------------------------------------*/
bool dcd_init (uint8_t rhport);
+
void dcd_int_enable (uint8_t rhport);
void dcd_int_disable(uint8_t rhport);
void dcd_set_address(uint8_t rhport, uint8_t dev_addr);
void dcd_set_config (uint8_t rhport, uint8_t config_num);
+// Get current frame number
+uint32_t dcd_get_frame_number(uint8_t rhport);
+
/*------------------------------------------------------------------*/
/* Event Function
* Called by DCD to notify USBD