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 581adc3  tinyusb: Add BT HCI config values for DA1469x
581adc3 is described below

commit 581adc3490ae8614c15be49b2ddca1876aca5bc9
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Thu Dec 2 12:01:18 2021 +0100

    tinyusb: Add BT HCI config values for DA1469x
    
    With introduction of hcibridge configuration it is possible
    to have BLE HCI controller over USB on DA1469x.
    This adds default endpoint values needed by BTH driver.
---
 hw/usb/tinyusb/da146xx/include/tusb_hw.h | 36 ++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/hw/usb/tinyusb/da146xx/include/tusb_hw.h 
b/hw/usb/tinyusb/da146xx/include/tusb_hw.h
index 0e5a19a..20aba82 100644
--- a/hw/usb/tinyusb/da146xx/include/tusb_hw.h
+++ b/hw/usb/tinyusb/da146xx/include/tusb_hw.h
@@ -76,4 +76,40 @@ void tusb_vbus_changed(bool present);
 #define USBD_HID_REPORT_EP_INTERVAL 10
 #endif
 
+#if defined(MYNEWT_VAL_USBD_BTH_EVENT_EP)
+#define USBD_BTH_EVENT_EP       MYNEWT_VAL(USBD_BTH_EVENT_EP)
+#else
+#define USBD_BTH_EVENT_EP       0x81
+#endif
+
+#if defined(MYNEWT_VAL_USBD_BTH_EVENT_EP_SIZE)
+#define BTH_EVENT_EP_SIZE       MYNEWT_VAL(BTH_EVENT_EP_SIZE)
+#else
+#define USBD_BTH_EVENT_EP_SIZE  0x10
+#endif
+
+#if defined(MYNEWT_VAL_USBD_BTH_EVENT_EP_INTERVAL)
+#define USBD_BTH_EVENT_EP_INTERVAL  MYNEWT_VAL(USBD_BTH_EVENT_EP_INTERVAL)
+#else
+#define USBD_BTH_EVENT_EP_INTERVAL 10
+#endif
+
+#if defined(MYNEWT_VAL_USBD_BTH_DATA_OUT_EP)
+#define USBD_BTH_DATA_OUT_EP    MYNEWT_VAL(USBD_BTH_DATA_OUT_EP)
+#else
+#define USBD_BTH_DATA_OUT_EP    0x02
+#endif
+
+#if defined(MYNEWT_VAL_USBD_BTH_DATA_IN_EP)
+#define USBD_BTH_DATA_IN_EP     MYNEWT_VAL(USBD_BTH_DATA_IN_EP)
+#else
+#define USBD_BTH_DATA_IN_EP     0x82
+#endif
+
+#if defined(MYNEWT_VAL_USBD_BTH_DATA_EP_SIZE)
+#define USBD_BTH_DATA_EP_SIZE   MYNEWT_VAL(USBD_BTH_DATA_EP_SIZE)
+#else
+#define USBD_BTH_DATA_EP_SIZE   0x40
+#endif
+
 #endif

Reply via email to