Skip to content

Commit

Permalink
Merge pull request betaflight#10988 from mikeller/change_itcm_ram_opt…
Browse files Browse the repository at this point in the history
…imisation
  • Loading branch information
mikeller authored Oct 5, 2021
2 parents 0b5a428 + aa92803 commit 42f2fc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/target/common_pre.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

#ifdef STM32F7
#define USE_ITCM_RAM
#define ITCM_RAM_OPTIMISATION "-O2"
#define USE_FAST_DATA
#define USE_DSHOT
#define USE_DSHOT_BITBANG
Expand Down Expand Up @@ -159,7 +160,11 @@


#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")))
#endif
#define FAST_CODE_NOINLINE NOINLINE
#else
#define FAST_CODE
Expand Down

0 comments on commit 42f2fc2

Please sign in to comment.