Skip to content

Commit ce54e6a

Browse files
committed
Fix build for CC32xx
1 parent 1c80877 commit ce54e6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/mgos_iram.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@
3131
#define _IRAM_SECTION_PREFIX ".text.IRAM"
3232
#endif
3333

34+
#ifndef IRAM
3435
#define IRAM \
3536
__attribute__( \
3637
(section(_IRAM_SECTION_PREFIX "." _IRAM_STR(__LINE__) "." _IRAM_STR(__COUNTER__))))
38+
#endif
3739

40+
#ifndef NOINLINE
3841
#define NOINLINE __attribute__((noinline))
42+
#endif
43+
3944
#endif // __ASSEMBLER__

0 commit comments

Comments
 (0)