Skip to content

Commit

Permalink
FORCE_RAM_FUNC now correctly uses .data.ramfuncs rather than plain .d…
Browse files Browse the repository at this point in the history
…ata, to work with newer gcc versions. See issue #33 at lancaster-university/microbit-v2-samples#33
  • Loading branch information
JohnVidler committed Jan 13, 2022
1 parent c91fff7 commit 42445df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/core/codal_target_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ extern "C"

// This is for cycle-precise wait even in presence of flash caches (forces function to sit in RAM)
#ifndef FORCE_RAM_FUNC
#define FORCE_RAM_FUNC __attribute__((noinline, long_call, section(".data")))
#define FORCE_RAM_FUNC __attribute__((noinline, long_call, section(".data.ramfuncs")))
#endif

#endif

0 comments on commit 42445df

Please sign in to comment.