Fix host buffer alignment setting

This commit is contained in:
Scott Shawcroft
2023-07-14 15:30:22 -07:00
parent f1e006d09b
commit 8b6d0a166b
2 changed files with 11 additions and 1 deletions

View File

@@ -431,7 +431,11 @@
// Attribute to align memory for host controller
#ifndef CFG_TUH_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN TU_ATTR_ALIGNED(4)
#ifdef CFG_TUSB_MEM_ALIGN
#define CFG_TUH_MEM_ALIGN CFG_TUSB_MEM_ALIGN
#else
#define CFG_TUH_MEM_ALIGN TU_ATTR_ALIGNED(4)
#endif
#endif
//------------- CLASS -------------//