1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Correct build error (FAST_CODE_PREF redefined)

This commit is contained in:
blckmn 2025-07-04 15:39:03 +10:00
parent dccb56ccb8
commit e911d55a08
3 changed files with 2 additions and 5 deletions

View file

@ -54,7 +54,7 @@
#endif
#ifndef FAST_CODE_PREF
#define FAST_CODE_PREF
#define FAST_CODE_PREF FAST_CODE
#endif
#ifndef FAST_CODE_NOINLINE

View file

@ -478,13 +478,10 @@ extern uint8_t _dmaram_end__;
#else
#define FAST_CODE __attribute__((section(".tcm_code")))
#endif
#ifndef FAST_CODE_PREF
#define FAST_CODE_PREF FAST_CODE
// If a particular target is short of ITCM RAM, defining FAST_CODE_PREF in the target.h file will
// cause functions decorated FAST_CODE_PREF to *not* go into ITCM RAM
// but if FAST_CODE_PREF is not defined for the target, FAST_CODE_PREF is an alias to FAST_CODE, and
// functions decorated with FAST_CODE_PREF *will* go into ITCM RAM.
#endif
#define FAST_CODE_NOINLINE NOINLINE
#endif // USE_ITCM_RAM