diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-03-06 15:11:31 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-07 11:57:01 -0800 |
commit | 5b8b06e976623ad52a1c4c558dfdac8b1c9d3dc7 (patch) | |
tree | 2d4d0b7aa80bab5ce6884677150437ed491dd398 /chip | |
parent | 187d57f292725937b55e53b8c28b1b136c0c285b (diff) | |
download | chrome-ec-5b8b06e976623ad52a1c4c558dfdac8b1c9d3dc7.tar.gz |
hammer: Switch trackpad I2C to 400 kHz, decrease EP interval to 2ms
These 2 changes improve the measured touchpad drag latency.
BRANCH=none
BUG=b:35587172
TEST=Measure improved latency with WALT.
TEST=Using CONFIG_TRACE, look at output.
Change-Id: Ibeb90f6f92423e82100f17df79b2f20d90abfeb7
Reviewed-on: https://chromium-review.googlesource.com/450980
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/usb_hid_touchpad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_hid_touchpad.c b/chip/stm32/usb_hid_touchpad.c index 92e1b09886..15b7f6554c 100644 --- a/chip/stm32/usb_hid_touchpad.c +++ b/chip/stm32/usb_hid_touchpad.c @@ -28,7 +28,7 @@ * Touchpad EP interval: Make sure this value is smaller than the typical * interrupt interval from the trackpad. */ -#define HID_TOUCHPAD_EP_INTERVAL_MS 8 /* ms */ +#define HID_TOUCHPAD_EP_INTERVAL_MS 2 /* ms */ /* HID descriptors */ const struct usb_interface_descriptor USB_IFACE_DESC(USB_IFACE_HID_TOUCHPAD) = { |