Specific the directory for all hw and cfg module. Use double quote for cfg and hw...
[bertos.git] / bertos / cpu / attr.h
index ce6e4ae38d35823c5b083860b97ff1c2ad5cf66a..3fd3b18fbde5d84f3a43a4dc02b764a9e012351a 100644 (file)
 #define CPU_ATTR_H
 
 #include "detect.h"
-#include <cfg/compiler.h> /* for uintXX_t */
-#include <cfg/arch_config.h>  /* ARCH_EMUL */
 
-#include "appconfig.h" // CONFIG_FAST_MEM
+#include "cfg/cfg_attr.h"      /* CONFIG_FAST_MEM */
+#include <cfg/compiler.h>      /* for uintXX_t */
+#include "cfg/cfg_arch.h"   /* ARCH_EMUL */
+
 
 /**
  * \name Macros for determining CPU endianness.
        #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.
  *