mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #10988 from mikeller/change_itcm_ram_optimisation
This commit is contained in:
commit
42f2fc28e3
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,7 @@
|
||||||
|
|
||||||
#ifdef STM32F7
|
#ifdef STM32F7
|
||||||
#define USE_ITCM_RAM
|
#define USE_ITCM_RAM
|
||||||
|
#define ITCM_RAM_OPTIMISATION "-O2"
|
||||||
#define USE_FAST_DATA
|
#define USE_FAST_DATA
|
||||||
#define USE_DSHOT
|
#define USE_DSHOT
|
||||||
#define USE_DSHOT_BITBANG
|
#define USE_DSHOT_BITBANG
|
||||||
|
@ -159,7 +160,11 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_ITCM_RAM
|
#ifdef USE_ITCM_RAM
|
||||||
|
#if defined(ITCM_RAM_OPTIMISATION) && !defined(DEBUG)
|
||||||
|
#define FAST_CODE __attribute__((section(".tcm_code"))) __attribute__((optimize(ITCM_RAM_OPTIMISATION)))
|
||||||
|
#else
|
||||||
#define FAST_CODE __attribute__((section(".tcm_code")))
|
#define FAST_CODE __attribute__((section(".tcm_code")))
|
||||||
|
#endif
|
||||||
#define FAST_CODE_NOINLINE NOINLINE
|
#define FAST_CODE_NOINLINE NOINLINE
|
||||||
#else
|
#else
|
||||||
#define FAST_CODE
|
#define FAST_CODE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue