Skip to content

Commit

Permalink
tinyusb: Default BT HCI endpoints to BT SIG recommended addresses
Browse files Browse the repository at this point in the history
Although Core Specification only suggests endpoints addresses and
operating systems work well when those are not in use, it turned
out that some custom radio verification equipement requires IUT
to use exact endpoints addresses suggested by spec.

Lets default to those suggested by spec to improve OOTB experience
when if needed user can override those via syscfg.
  • Loading branch information
sjanc committed Feb 5, 2024
1 parent 61844a0 commit 0e635bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions hw/usb/tinyusb/nrf53/include/tusb_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#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 0x84
#define USBD_BTH_EVENT_EP 0x81
#endif

#if defined(MYNEWT_VAL_USBD_BTH_EVENT_EP_SIZE)
Expand All @@ -107,13 +107,13 @@
#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 0x05
#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 0x85
#define USBD_BTH_DATA_IN_EP 0x82
#endif

#if defined(MYNEWT_VAL_USBD_BTH_DATA_EP_SIZE)
Expand Down
6 changes: 3 additions & 3 deletions hw/usb/tinyusb/nrf5x/include/tusb_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#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 0x84
#define USBD_BTH_EVENT_EP 0x81
#endif

#if defined(MYNEWT_VAL_USBD_BTH_EVENT_EP_SIZE)
Expand All @@ -107,13 +107,13 @@
#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 0x05
#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 0x85
#define USBD_BTH_DATA_IN_EP 0x82
#endif

#if defined(MYNEWT_VAL_USBD_BTH_DATA_EP_SIZE)
Expand Down

0 comments on commit 0e635bf

Please sign in to comment.