summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-09-01 22:04:24 +0800
committersakumisu <[email protected]>2022-09-01 22:04:24 +0800
commitde5ca1313aeafc5ec832864298086e3041d08061 (patch)
treecb112eb2b1b4bab15b24e117fbf98ff0129027ac
parent129f45eb71b029e2a3c10a70f9fa7b3b0babbcad (diff)
revert dot in keil
-rw-r--r--core/usbh_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/usbh_core.h b/core/usbh_core.h
index 86cf0e46..1d13c4ae 100644
--- a/core/usbh_core.h
+++ b/core/usbh_core.h
@@ -44,7 +44,12 @@ extern "C" {
#define CLASS_CONNECT(hport, i) ((hport)->config.intf[i].class_driver->connect(hport, i))
#define CLASS_DISCONNECT(hport, i) ((hport)->config.intf[i].class_driver->disconnect(hport, i))
+
+#ifdef __ARMCC_VERSION /* ARM C Compiler */
+#define CLASS_INFO_DEFINE __attribute__((section("usbh_class_info"))) __USED __ALIGNED(1)
+#elif defined(__GNUC__)
#define CLASS_INFO_DEFINE __attribute__((section(".usbh_class_info"))) __USED __ALIGNED(1)
+#endif
enum usbh_event_type {
USBH_EVENT_CONNECTED = (1 << 0),