summaryrefslogtreecommitdiff
path: root/src/host/hcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-31 18:15:47 +0700
committerhathach <[email protected]>2021-05-31 18:15:47 +0700
commit4e98ce914774390adcdbe9e2a299f6d47852cd07 (patch)
treed5b3e0965d1ade7a3e43a8fadfd71fc415861005 /src/host/hcd.h
parentda8000d42d6d6252eef9627efb6cf2557dfcf1d2 (diff)
use hcd_frame_number() instead of uframe
Diffstat (limited to 'src/host/hcd.h')
-rw-r--r--src/host/hcd.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h
index 0a9f00a0c..46209dc45 100644
--- a/src/host/hcd.h
+++ b/src/host/hcd.h
@@ -108,15 +108,8 @@ void hcd_int_enable (uint8_t rhport);
// Disable USB interrupt
void hcd_int_disable(uint8_t rhport);
-// Get micro frame number (125 us)
-uint32_t hcd_uframe_number(uint8_t rhport);
-
// Get frame number (1ms)
-TU_ATTR_ALWAYS_INLINE static inline
-uint32_t hcd_frame_number(uint8_t rhport)
-{
- return hcd_uframe_number(rhport) >> 3;
-}
+uint32_t hcd_frame_number(uint8_t rhport);
//--------------------------------------------------------------------+
// Port API