diff options
| author | hathach <[email protected]> | 2022-06-06 23:16:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-06-06 23:16:49 +0700 |
| commit | 7c8278303bc14770ea9fcd9f6e4a9dbba32572e3 (patch) | |
| tree | dddfac5e4042638632d7187835733cde2a911029 /src | |
| parent | 9794a2b865df81e667b464481bb9b1c70587e64b (diff) | |
update all host examples
Diffstat (limited to 'src')
| -rw-r--r-- | src/tusb_option.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 0a0b20dca..e332c5728 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -238,11 +238,19 @@ typedef int make_iso_compilers_happy ; #define CFG_TUH_ENABLED (TUH_RHPORT_MODE & OPT_MODE_HOST) #endif +#ifndef CFG_TUH_MAX_SPEED + // fallback to use CFG_TUSB_RHPORTx_MODE + #define CFG_TUH_MAX_SPEED (TUH_RHPORT_MODE & OPT_MODE_SPEED_MASK) +#endif + // For backward compatible #define TUSB_OPT_DEVICE_ENABLED CFG_TUD_ENABLED #define TUSB_OPT_HOST_ENABLED CFG_TUH_ENABLED +//--------------------------------------------------------------------+ // TODO move later +//--------------------------------------------------------------------+ + // TUP_MCU_STRICT_ALIGN will overwrite TUP_ARCH_STRICT_ALIGN. // In case TUP_MCU_STRICT_ALIGN = 1 and TUP_ARCH_STRICT_ALIGN =0, we will not reply on compiler // to generate unaligned access code. |
