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 a62c079 commit 1b7b94eCopy full SHA for 1b7b94e
platform/mbed_toolchain.h
@@ -412,6 +412,27 @@
412
#define EXTERN extern
413
#endif
414
415
+/** MBED_NONSECURE_ENTRY
416
+ * Declare a function that can be called from non-secure world or secure world
417
+ *
418
+ * @code
419
+ * #include "mbed_toolchain.h"
420
421
+ * MBED_NONSECURE_ENTRY void foo() {
422
423
+ * }
424
+ * @endcode
425
+ */
426
+#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3L)
427
+#if defined (__ICCARM__)
428
+#define MBED_NONSECURE_ENTRY __cmse_nonsecure_entry
429
+#else
430
+#define MBED_NONSECURE_ENTRY __attribute__((cmse_nonsecure_entry))
431
+#endif
432
433
+#define MBED_NONSECURE_ENTRY
434
435
+
436
437
438
/** @}*/
0 commit comments