From: asterix Date: Mon, 26 May 2008 12:23:08 +0000 (+0000) Subject: Add default implementation of FAST_* macro. X-Git-Tag: 2.0.0~564 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3c39d4d894849ce0115c6e1efe14b003aa2e91e1;p=bertos.git Add default implementation of FAST_* macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1370 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/attr.h b/bertos/cpu/attr.h index 4090abb9..b0ac8a4d 100644 --- a/bertos/cpu/attr.h +++ b/bertos/cpu/attr.h @@ -219,19 +219,6 @@ */ #define CPU_REG_INIT_VALUE(reg) (reg == 0 ? 0x80 : 0) - #warning FIXME:This macro are empty for AVR target, implent it! - /** - * Function attribute for use with performance critical code. - */ - #define FAST_FUNC /* */ - - /** - * Data attribute to move constant data to fast memory storage. - * - * \see FAST_FUNC - */ - #define FAST_RODATA /* */ - #else #error No CPU_... defined. #endif @@ -241,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 @@ -250,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. *