This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 53a8222  usb/bth: Set event endpoint interval to 1ms
53a8222 is described below

commit 53a8222edd607c22bb769f862d8e11699a8ea988
Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl>
AuthorDate: Wed Mar 24 14:15:37 2021 +0100

    usb/bth: Set event endpoint interval to 1ms
    
    Bluetooth specification Vol.4 section
    2.4 INTERRUPT ENDPOINT EXPECTATIONS
    states that:
    The interrupt endpoint should have an interval of 1 ms (full speed). For a
    Controller using USB high-speed the interrupt interval may have an interval 
of
    125 microseconds.
---
 hw/usb/tinyusb/nrf5x/include/tusb_hw.h    | 2 +-
 hw/usb/tinyusb/std_descriptors/syscfg.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/usb/tinyusb/nrf5x/include/tusb_hw.h 
b/hw/usb/tinyusb/nrf5x/include/tusb_hw.h
index 7ee9375..88cd17f 100755
--- a/hw/usb/tinyusb/nrf5x/include/tusb_hw.h
+++ b/hw/usb/tinyusb/nrf5x/include/tusb_hw.h
@@ -69,7 +69,7 @@
 #if defined(MYNEWT_VAL_USBD_HID_REPORT_EP_INTERVAL)
 #define USBD_HID_REPORT_EP_INTERVAL MYNEWT_VAL(USBD_HID_REPORT_EP_INTERVAL)
 #else
-#define USBD_HID_REPORT_EP_INTERVAL 10
+#define USBD_HID_REPORT_EP_INTERVAL 1
 #endif
 
 #if defined(MYNEWT_VAL_USBD_BTH_EVENT_EP)
diff --git a/hw/usb/tinyusb/std_descriptors/syscfg.yml 
b/hw/usb/tinyusb/std_descriptors/syscfg.yml
index d557fc9..d122a52 100644
--- a/hw/usb/tinyusb/std_descriptors/syscfg.yml
+++ b/hw/usb/tinyusb/std_descriptors/syscfg.yml
@@ -135,7 +135,7 @@ syscfg.defs:
         value:
     USBD_BTH_EVENT_EP_INTERVAL:
         description: BTH event endpoint interval
-        value:
+        value: 1
     USBD_BTH_DATA_IN_EP:
         description: BTH data in endpoint number
         value:

Reply via email to