1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +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

View file

@ -77,6 +77,6 @@
#define FLASH_PAGE_SIZE ((uint32_t)0x4000) // 16K sectors
// ITCM is in short supply for this target.
// For this target, functions decorated FAST_CODE_PREF will not be put into ITCM RAM;
// For this target, functions decorated FAST_CODE_PREF will not be put into ITCM RAM;
// on other targets, the same function *will* go into ITCM RAM
#define FAST_CODE_PREF