summaryrefslogtreecommitdiff
path: root/usr/sdk
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-12-22 20:01:18 -0500
committerIan Moffett <ian@osmora.org>2025-12-22 20:01:18 -0500
commit0ca11cce7f3660a4b92441c39c30b24866a210c6 (patch)
treec1af81887df1ceefd237f544554436065d327d08 /usr/sdk
parenta92a1b8e6d7537d37a5e9fb3b56680b3d5a1542b (diff)
usr: sdk: Add sdk/defs.h
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr/sdk')
-rw-r--r--usr/sdk/inc/sdk/defs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/sdk/inc/sdk/defs.h b/usr/sdk/inc/sdk/defs.h
new file mode 100644
index 0000000..3d4ccfc
--- /dev/null
+++ b/usr/sdk/inc/sdk/defs.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2025, Ian Moffett.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef _SDK_DEFS_H_
+#define _SDK_DEFS_H_ 1
+
+#define ASM __asm__ __volatile__
+#define ATTR(x) __attribute__((x))
+#define ALIGN(n) ATTR(aligned((n)))
+#define NO_RETURN ATTR(no_return)
+#define ALWAYS_INLINE ATTR(always_inline)
+
+#endif /* !_SDK_DEFS_H_ */