diff options
| author | hathach <[email protected]> | 2018-12-17 12:14:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-17 12:14:11 +0700 |
| commit | 902697ca079a179221da92f8cb9f873768a5d0d7 (patch) | |
| tree | 8bc9238d3aa66b4b02139a9e24005e1ce4c3630a /src/device | |
| parent | 455da57f9d66a342383334f3af82c27b57feb6cd (diff) | |
add dcd_get_microframe()
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 6b1356cbf..408922740 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 micro-frame number
+uint32_t dcd_get_microframe(uint8_t rhport);
+
/*------------------------------------------------------------------*/
/* Event Function
* Called by DCD to notify USBD
|
