mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Re-ordered
This commit is contained in:
parent
e911d55a08
commit
2e3d9f680a
1 changed files with 6 additions and 7 deletions
|
@ -496,13 +496,6 @@ extern uint8_t _dmaram_end__;
|
||||||
#define FAST_DATA __attribute__ ((section(".fastram_data"), aligned(4)))
|
#define FAST_DATA __attribute__ ((section(".fastram_data"), aligned(4)))
|
||||||
#endif // USE_FAST_DATA
|
#endif // USE_FAST_DATA
|
||||||
|
|
||||||
// noting this is not used anywhere except perhaps for debugging
|
|
||||||
#ifdef USE_RAM_CODE
|
|
||||||
// RAM_CODE for methods that need to be in RAM, but don't need to be in the fastest type of memory.
|
|
||||||
// Note: if code is marked as RAM_CODE it *MUST* be in RAM, there is no alternative unlike functions marked with FAST_CODE/CCM_CODE
|
|
||||||
#define RAM_CODE __attribute__((section(".ram_code")))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USE_EXST) && !defined(RAMBASED)
|
#if defined(USE_EXST) && !defined(RAMBASED)
|
||||||
#define USE_FLASH_BOOT_LOADER
|
#define USE_FLASH_BOOT_LOADER
|
||||||
#endif
|
#endif
|
||||||
|
@ -518,3 +511,9 @@ extern uint8_t _dmaram_end__;
|
||||||
#define MMFLASH_DATA FAST_DATA
|
#define MMFLASH_DATA FAST_DATA
|
||||||
#define MMFLASH_DATA_ZERO_INIT FAST_DATA_ZERO_INIT
|
#define MMFLASH_DATA_ZERO_INIT FAST_DATA_ZERO_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_RAM_CODE
|
||||||
|
// RAM_CODE for methods that need to be in RAM, but don't need to be in the fastest type of memory.
|
||||||
|
// Note: if code is marked as RAM_CODE it *MUST* be in RAM, there is no alternative unlike functions marked with FAST_CODE/CCM_CODE
|
||||||
|
#define RAM_CODE __attribute__((section(".ram_code")))
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue