Some attribute macros, including placeholders for fast-memory attributes.
authorIngo Albrecht <prom@berlin.ccc.de>
Sun, 7 Mar 2010 09:18:15 +0000 (10:18 +0100)
committerIngo Albrecht <prom@berlin.ccc.de>
Sun, 7 Mar 2010 09:18:15 +0000 (10:18 +0100)
src/target/firmware/include/defines.h [new file with mode: 0644]

diff --git a/src/target/firmware/include/defines.h b/src/target/firmware/include/defines.h
new file mode 100644 (file)
index 0000000..a3f8bb2
--- /dev/null
@@ -0,0 +1,18 @@
+
+#ifndef _DEFINES_H
+#define _DEFINES_H
+
+/* type properties */
+#define __packed     __attribute__((packed))
+#define __aligned(alignment) __attribute__((aligned(alignment)))
+
+/* linkage */
+#define __section(name) __attribute__((section(name)))
+
+/* force placement in zero-waitstate memory */
+/* XXX: these are placeholders */
+#define __fast_text
+#define __fast_data
+#define __fast_bss
+
+#endif /* !_DEFINES_H */