1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2019-02-01 18:03:53 +01:00
parent 17f5962f18
commit f05889b510
3 changed files with 10 additions and 8 deletions

View file

@ -197,3 +197,5 @@
#define MAX_PWM_OUTPUT_PORTS 8
#define USE_DSHOT
#define USE_ITCM_RAM

View file

@ -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

View file

@ -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