diff options
| author | Mengsk <[email protected]> | 2025-10-03 09:34:40 +0200 |
|---|---|---|
| committer | Mengsk <[email protected]> | 2025-10-03 09:34:40 +0200 |
| commit | 05ea8cf0ee1365dfe5b2c43c304838648f739abb (patch) | |
| tree | ef4b339711c41927c35ef036e26640ae84c81ee7 /src/common | |
| parent | d322207441d55f636be911899f1c7928ba6b00b7 (diff) | |
| parent | c1bf19ed6cf1eaa791f221c1bc5ce4b3d069f76d (diff) | |
Merge remote-tracking branch 'tinyusb/master' into uac1
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index a9997ad3f..4d83974f6 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -35,6 +35,7 @@ // Macros Helper //--------------------------------------------------------------------+ #define TU_ARRAY_SIZE(_arr) ( sizeof(_arr) / sizeof(_arr[0]) ) +#define TU_FIELD_SZIE(_type, _field) (sizeof(((_type *)0)->_field)) #define TU_MIN(_x, _y) ( ( (_x) < (_y) ) ? (_x) : (_y) ) #define TU_MAX(_x, _y) ( ( (_x) > (_y) ) ? (_x) : (_y) ) #define TU_DIV_CEIL(n, d) (((n) + (d) - 1) / (d)) |
