We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fe108 commit 8b36d9cCopy full SHA for 8b36d9c
features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usb.h
@@ -33,6 +33,18 @@
33
#include <string.h>
34
#include <stddef.h>
35
#include "em_common.h"
36
+/* Workaround for em_common naming change so that we don't need to rework the
37
+ entire USB HAL */
38
+#define EFM32_PACK_START(x) SL_PACK_START(x)
39
+#define EFM32_PACK_END() SL_PACK_END()
40
+#define EFM32_MIN(a, b) SL_MIN(a, b)
41
+#define EFM32_MAX(a, b) SL_MAX(a, b)
42
+#define EFM32_ATTRIBUTE_PACKED SL_ATTRIBUTE_PACKED
43
+#define EFM32_ATTRIBUTE_ALIGN(X) SL_ATTRIBUTE_ALIGN(X)
44
+#define EFM32_ALIGN(X) SL_ALIGN(X)
45
+#define EFM32_WEAK SL_WEAK
46
+#define EFM32_ATTRIBUTE_SECTION(X) SL_ATTRIBUTE_SECTION(X)
47
+
48
#include "em_int.h"
49
50
#if defined( USB_USE_PRINTF )
0 commit comments