summaryrefslogtreecommitdiff
path: root/src/common/tusb_compiler.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-05-24 15:18:30 +0700
committerGitHub <[email protected]>2024-05-24 15:18:30 +0700
commit41c7cdac6835d45e336d71e3f4841e88a087316d (patch)
tree4e0710197b6b93390be9833170c775d48d5b4fe6 /src/common/tusb_compiler.h
parent1f259b3ab0f1b9587dee9c0bfb5574d70d021640 (diff)
parentdaffb24111c03e3630edf6496ff5bb65c2cf8c28 (diff)
Merge pull request #2659 from hathach/fsdev-generalize-ch32
CH32 add support for usbd (only), fsdev
Diffstat (limited to 'src/common/tusb_compiler.h')
-rw-r--r--src/common/tusb_compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h
index 0d5570b1c..ce5566ffe 100644
--- a/src/common/tusb_compiler.h
+++ b/src/common/tusb_compiler.h
@@ -128,6 +128,7 @@
#define TU_ATTR_SECTION(sec_name) __attribute__ ((section(#sec_name)))
#define TU_ATTR_PACKED __attribute__ ((packed))
#define TU_ATTR_WEAK __attribute__ ((weak))
+ // #define TU_ATTR_WEAK_ALIAS(f) __attribute__ ((weak, alias(#f))
#ifndef TU_ATTR_ALWAYS_INLINE // allow to override for debug
#define TU_ATTR_ALWAYS_INLINE __attribute__ ((always_inline))
#endif