mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 08:45:31 +03:00
make ITCM RAM usage target specific
This commit is contained in:
parent
17f5962f18
commit
f05889b510
3 changed files with 10 additions and 8 deletions
|
@ -197,3 +197,5 @@
|
|||
|
||||
#define MAX_PWM_OUTPUT_PORTS 8
|
||||
#define USE_DSHOT
|
||||
|
||||
#define USE_ITCM_RAM
|
|
@ -45,14 +45,6 @@
|
|||
#define SKIP_CLI_RESOURCES
|
||||
#endif
|
||||
|
||||
#ifdef STM32F7
|
||||
#define FAST_CODE __attribute__((section(".tcm_code")))
|
||||
#define NOINLINE __NOINLINE
|
||||
#else
|
||||
#define FAST_CODE
|
||||
#define NOINLINE
|
||||
#endif
|
||||
|
||||
#define USE_ADC_AVERAGING
|
||||
#define USE_64BIT_TIME
|
||||
#define USE_BLACKBOX
|
||||
|
|
|
@ -35,3 +35,11 @@
|
|||
#if !defined(USE_MSP_DISPLAYPORT) && (FLASH_SIZE > 128) && !defined(USE_OSD)
|
||||
#define USE_MSP_DISPLAYPORT
|
||||
#endif
|
||||
|
||||
#ifdef USE_ITCM_RAM
|
||||
#define FAST_CODE __attribute__((section(".tcm_code")))
|
||||
#define NOINLINE __NOINLINE
|
||||
#else
|
||||
#define FAST_CODE
|
||||
#define NOINLINE
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue