summaryrefslogtreecommitdiff
path: root/src/usbh_driver_gp_xbox.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_gp_xbox.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_gp_xbox.c')
-rw-r--r--src/usbh_driver_gp_xbox.c11
1 files changed, 6 insertions, 5 deletions
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;