diff options
| author | hathach <[email protected]> | 2023-11-24 16:08:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-11-24 16:08:48 +0700 |
| commit | 6e5c7f43906bac8ab47642e56c153297b83f3679 (patch) | |
| tree | 3f2a922c7126df4b25e3347cc17c792a8689ad58 /src/class/bth/bth_device.h | |
| parent | 5e54bd37b694542e3f719b9c3f151b8e7e26e86a (diff) | |
rename to CFG_TUD_BTH_HISTORICAL_COMPATIBLE, move CFG_TUD_BTH_ISO_ALT_COUNT to tusb_option.h and mandatory for BTH driver
Diffstat (limited to 'src/class/bth/bth_device.h')
| -rwxr-xr-x | src/class/bth/bth_device.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/class/bth/bth_device.h b/src/class/bth/bth_device.h index c23e74bfb..e782c532b 100755 --- a/src/class/bth/bth_device.h +++ b/src/class/bth/bth_device.h @@ -36,15 +36,15 @@ #ifndef CFG_TUD_BTH_EVENT_EPSIZE #define CFG_TUD_BTH_EVENT_EPSIZE 16 #endif + #ifndef CFG_TUD_BTH_DATA_EPSIZE #define CFG_TUD_BTH_DATA_EPSIZE 64 #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 + +// Allow BTH class to work in historically compatibility mode where the bRequest is always 0xe0. +// See Bluetooth Core v5.3, Vol. 4, Part B, Section 2.2 +#ifndef CFG_TUD_BTH_HISTORICAL_COMPATIBLE +#define CFG_TUD_BTH_HISTORICAL_COMPATIBLE 0 #endif typedef struct TU_ATTR_PACKED |
