4 #ifdef __IAR_SYSTEMS_ASM__
8 #define __EXPORT__ EXPORT
9 #define __IMPORT__ IMPORT
11 #define __EQU__(a, b) a EQU b
12 #define __WEAK__ PUBWEAK
13 #define __THUMB__ THUMB
15 #if __VER__ >= 5000000
20 #define __CODE__ SECTION .text:CODE:REORDER:NOROOT(2)
21 #define __BSS__ SECTION .bss:DATA:NOROOT(2)
22 #define __BEGIN_RESETINFO__(offset) SFB(RESETINFO + offset)
23 #define __END_RESETINFO__(offset) SFE(RESETINFO + offset)
24 #define __BEGIN_STACK__(offset) SFB(CSTACK + offset)
25 #define __END_STACK__(offset) SFE(CSTACK + offset)
30 #error IAR versions less that 5.xx are not supported
34 #endif // __IAR_SYSTEMS_ASM__
41 #define __CODE__ .text
42 #define __THUMB__ .thumb_func
45 #define __EXPORT__ .global
46 #define __IMPORT__ .extern
47 #define __SPACE__ .space
48 #define __EQU__(a, b) .equ a, b
49 #define __WEAK__ .weak
50 #define __BEGIN_NVDATA__(offset) (_noinit + offset)
51 #define __BEGIN_STACK__(offset) (_stack + offset)
52 #define __END_STACK__(offset) (_estack + offset)