From e35c1e9fc68dbbf870cbfd1213f0194869bcb14d Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Wed, 1 Apr 2015 18:29:32 +0200 Subject: poll(): refactor every poll argument t_us and tflp -> time_curr_us added comment to usbh_hubbed.h Signed-off-by: Amir Hammad --- src/usbh_driver_gp_xbox.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/usbh_driver_gp_xbox.c') diff --git a/src/usbh_driver_gp_xbox.c b/src/usbh_driver_gp_xbox.c index 52955d9..07eab38 100644 --- a/src/usbh_driver_gp_xbox.c +++ b/src/usbh_driver_gp_xbox.c @@ -30,7 +30,7 @@ static void *gp_xbox_init(void *usbh_dev); static bool gp_xbox_analyze_descriptor(void *drvdata, void *descriptor); -static void gp_xbox_poll(void *drvdata, uint32_t tflp); +static void gp_xbox_poll(void *drvdata, uint32_t time_curr_us); static void gp_xbox_remove(void *drvdata); static const usbh_dev_driver_info_t usbh_gp_xbox_driver_info = { @@ -367,12 +367,13 @@ static void read_gp_xbox_in(gp_xbox_device_t *gp_xbox) } /** - * - * tflp time from last poll [us] + * \param time_curr_us - monotically rising time (see usbh_hubbed.h) + * unit is microseconds */ -static void gp_xbox_poll(void *drvdata, uint32_t tflp) +static void gp_xbox_poll(void *drvdata, uint32_t time_curr_us) { - (void)tflp; + (void)time_curr_us; + gp_xbox_device_t *gp_xbox = drvdata; usbh_device_t *dev = gp_xbox->usbh_device; -- cgit