Skip to content

Commit

Permalink
Fix build for CC32xx
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Aug 30, 2021
1 parent 1c80877 commit ce54e6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/mgos_iram.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@
#define _IRAM_SECTION_PREFIX ".text.IRAM"
#endif

#ifndef IRAM
#define IRAM \
__attribute__( \
(section(_IRAM_SECTION_PREFIX "." _IRAM_STR(__LINE__) "." _IRAM_STR(__COUNTER__))))
#endif

#ifndef NOINLINE
#define NOINLINE __attribute__((noinline))
#endif

#endif // __ASSEMBLER__

0 comments on commit ce54e6a

Please sign in to comment.