X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fattr.h;h=b0ac8a4d7401fc6231a5ea8a3d58944740258d98;hb=3c39d4d894849ce0115c6e1efe14b003aa2e91e1;hp=ce6e4ae38d35823c5b083860b97ff1c2ad5cf66a;hpb=345f93de1963f49bdb194d2b06c8c5d7ba0a3e5f;p=bertos.git diff --git a/bertos/cpu/attr.h b/bertos/cpu/attr.h index ce6e4ae3..b0ac8a4d 100644 --- a/bertos/cpu/attr.h +++ b/bertos/cpu/attr.h @@ -228,7 +228,6 @@ #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 @@ -237,6 +236,20 @@ #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. *