mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Add historical EP compatibility to bth class
This commit is contained in:
parent
f84eafcaa2
commit
8bac68db84
@ -204,7 +204,7 @@ bool btd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t c
|
|||||||
request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_DEVICE)
|
request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_DEVICE)
|
||||||
{
|
{
|
||||||
// HCI command packet addressing for single function Primary Controllers
|
// HCI command packet addressing for single function Primary Controllers
|
||||||
TU_VERIFY(request->bRequest == 0 && request->wValue == 0 && request->wIndex == 0);
|
TU_VERIFY((CFG_TUD_BTH_HISTORICAL_COMPAT && request->bRequest == 0xe0) || (request->bRequest == 0 && request->wValue == 0 && request->wIndex == 0));
|
||||||
}
|
}
|
||||||
else if (request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_INTERFACE)
|
else if (request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_INTERFACE)
|
||||||
{
|
{
|
||||||
|
@ -39,6 +39,13 @@
|
|||||||
#ifndef CFG_TUD_BTH_DATA_EPSIZE
|
#ifndef CFG_TUD_BTH_DATA_EPSIZE
|
||||||
#define CFG_TUD_BTH_DATA_EPSIZE 64
|
#define CFG_TUD_BTH_DATA_EPSIZE 64
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef CFG_TUD_BTH_HISTORICAL_COMPAT
|
||||||
|
#define CFG_TUD_BTH_HISTORICAL_COMPAT 0
|
||||||
|
#endif
|
||||||
|
#ifndef CFG_TUD_BTH_ISO_ALT_COUNT
|
||||||
|
// See Bluetooth Core v5.3, Vol. 4, Part B, Section 2.1
|
||||||
|
#error You must tell the driver the number of ISO endpoints to use
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct TU_ATTR_PACKED
|
typedef struct TU_ATTR_PACKED
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user