Add default implementation of FAST_* macro.
[bertos.git] / bertos / cpu / attr.h
index ce6e4ae38d35823c5b083860b97ff1c2ad5cf66a..b0ac8a4d7401fc6231a5ea8a3d58944740258d98 100644 (file)
        #define CPU_REG_INIT_VALUE(reg)     0
 #endif
 
-
 #ifndef CPU_STACK_GROWS_UPWARD
        #error CPU_STACK_GROWS_UPWARD should have been defined to either 0 or 1
 #endif
        #error CPU_SP_ON_EMPTY_SLOT should have been defined to either 0 or 1
 #endif
 
+#ifndef FAST_FUNC
+       /**
+        * Function attribute for use with performance critical code.
+        */
+       #define FAST_FUNC /* */
+#endif
+
+#ifndef FAST_RODATA
+       /**
+        * Data attribute to move constant data to fast memory storage.
+        */
+       #define FAST_RODATA /* */
+#endif
+
 /*
  * Support stack handling peculiarities of a few CPUs.
  *