summaryrefslogtreecommitdiff
path: root/src/usbh_driver_hub.c
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-04-01 18:29:32 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-04-01 18:29:32 +0200
commite35c1e9fc68dbbf870cbfd1213f0194869bcb14d (patch)
tree3507c158aad04b9da60a3c5e617fa7984341a5c8 /src/usbh_driver_hub.c
parente9c2632a199e26e9dac54984bf5e2b25bf13738c (diff)
downloadsecure-hid-e35c1e9fc68dbbf870cbfd1213f0194869bcb14d.tar.gz
secure-hid-e35c1e9fc68dbbf870cbfd1213f0194869bcb14d.tar.bz2
secure-hid-e35c1e9fc68dbbf870cbfd1213f0194869bcb14d.zip
poll(): refactor every poll argument t_us and tflp -> time_curr_us
added comment to usbh_hubbed.h Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/usbh_driver_hub.c')
-rw-r--r--src/usbh_driver_hub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usbh_driver_hub.c b/src/usbh_driver_hub.c
index c82eacd..a70e0c0 100644
--- a/src/usbh_driver_hub.c
+++ b/src/usbh_driver_hub.c
@@ -32,7 +32,7 @@ static hub_device_t hub_device[USBH_MAX_HUBS];
static void *hub_init(void *usbh_dev);
static bool hub_analyze_descriptor(void *drvdata, void *descriptor);
-static void hub_poll(void *drvdata, uint32_t tflp);
+static void hub_poll(void *drvdata, uint32_t time_curr_us);
static void event(usbh_device_t *dev, usbh_packet_callback_data_t cb_data);
static void hub_remove(void *drvdata);
@@ -765,8 +765,8 @@ static void read_ep1(void *drvdata)
}
/**
- *
- * tflp time from last poll [ms]
+ * \param time_curr_us - monotically rising time (see usbh_hubbed.h)
+ * unit is microseconds
*/
static void hub_poll(void *drvdata, uint32_t time_curr_us)
{