1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Rename FLASH_SIZE to TARGET_FLASH_SIZE

This commit is contained in:
jflyper 2020-01-19 02:01:26 +09:00
parent a2aeb0cef4
commit be923434b8
15 changed files with 48 additions and 48 deletions

View file

@ -82,7 +82,7 @@
#include "sensors/gyro.h"
#include "sensors/sensors.h"
#if ((FLASH_SIZE > 128) && (defined(USE_GYRO_SPI_ICM20601) || defined(USE_GYRO_SPI_ICM20689) || defined(USE_GYRO_SPI_MPU6500)))
#if ((TARGET_FLASH_SIZE > 128) && (defined(USE_GYRO_SPI_ICM20601) || defined(USE_GYRO_SPI_ICM20689) || defined(USE_GYRO_SPI_MPU6500)))
#define USE_GYRO_SLEW_LIMITER
#endif

View file

@ -1,5 +1,5 @@
F1_TARGETS += $(TARGET)
FLASH_SIZE = 64
MCU_FLASH_SIZE = 64
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \

View file

@ -17,5 +17,5 @@ It is also easy to convert exisiting F1 targets to be built to run on the Nucleo
to target.h to avoid non-F1 compatible code from getting in.
- Add
FLASH_SIZE = 1024
MCU_FLASH_SIZE = 1024
to target.mk

View file

@ -1,6 +1,6 @@
F1_TARGETS += $(TARGET)
FEATURES = ONBOARDFLASH
FLASH_SIZE = 1024
MCU_FLASH_SIZE = 1024
TARGET_SRC = \
drivers/accgyro/accgyro_fake.c \

View file

@ -10,8 +10,8 @@ NUCLEOF303RE target for use with ST Nucleo-F303RE.
It is easy to build other targets to run on Nucleo-F303RE:
1. Add FLASH_SIZE line to target.mk (This will select stm32_flash_f303_512k.ld as linker script)
FLASH_SIZE = 512
1. Add MCU_FLASH_SIZE line to target.mk (This will select stm32_flash_f303_512k.ld as linker script)
MCU_FLASH_SIZE = 512
2. Modify target.h to define extra pins used for UART5 if necessary.
#define TARGET_IO_PORTC 0xffff

View file

@ -4,7 +4,7 @@ FEATURES = VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 0
FLASH_SIZE = 512
MCU_FLASH_SIZE = 512
TARGET_SRC = \
drivers/accgyro/accgyro_fake.c \

View file

@ -131,7 +131,7 @@
#undef USE_I2C
#undef USE_SPI
#define FLASH_SIZE 2048
#define TARGET_FLASH_SIZE 2048
#define LED_STRIP_TIMER 1

View file

@ -199,7 +199,7 @@
#define USE_SERIALRX_SPEKTRUM // SRXL, DSM2 and DSMX protocol
#define USE_SERIALRX_SUMD // Graupner Hott protocol
#if (FLASH_SIZE > 128)
#if (TARGET_FLASH_SIZE > 128)
#define PID_PROFILE_COUNT 3
#define CONTROL_RATE_PROFILE_COUNT 6
#else
@ -207,7 +207,7 @@
#define CONTROL_RATE_PROFILE_COUNT 3
#endif
#if (FLASH_SIZE > 64)
#if (TARGET_FLASH_SIZE > 64)
#define USE_ACRO_TRAINER
#define USE_BLACKBOX
#define USE_CLI_BATCH
@ -219,7 +219,7 @@
#define USE_TELEMETRY_SMARTPORT
#endif
#if (FLASH_SIZE > 128)
#if (TARGET_FLASH_SIZE > 128)
#define USE_GYRO_OVERFLOW_CHECK
#define USE_YAW_SPIN_RECOVERY
#define USE_DSHOT_DMAR
@ -227,7 +227,7 @@
#define USE_TELEMETRY_CRSF
#define USE_TELEMETRY_SRXL
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 12))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 12))
#define USE_CMS
#define USE_MSP_DISPLAYPORT
#define USE_MSP_OVER_TELEMETRY
@ -235,14 +235,14 @@
#define USE_LED_STRIP
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 11))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 11))
#define USE_VTX_COMMON
#define USE_VTX_CONTROL
#define USE_VTX_SMARTAUDIO
#define USE_VTX_TRAMP
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 10))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 10))
#define USE_VIRTUAL_CURRENT_METER
#define USE_CAMERA_CONTROL
#define USE_ESC_SENSOR
@ -250,39 +250,39 @@
#define USE_RCDEVICE
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 9))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 9))
#define USE_GYRO_LPF2
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 8))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 8))
#define USE_LAUNCH_CONTROL
#define USE_DYN_LPF
#define USE_D_MIN
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 7))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 7))
#define USE_THROTTLE_BOOST
#define USE_INTEGRATED_YAW_CONTROL
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 6))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 6))
#define USE_ITERM_RELAX
#define USE_RC_SMOOTHING_FILTER
#define USE_THRUST_LINEARIZATION
#define USE_TPA_MODE
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 5))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 5))
#define USE_PWM
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 4))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 4))
#define USE_HUFFMAN
#define USE_PINIO
#define USE_PINIOBOX
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 3))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 3))
#ifdef USE_SERIALRX_SPEKTRUM
#define USE_SPEKTRUM_BIND
#define USE_SPEKTRUM_BIND_PLUG
@ -296,14 +296,14 @@
#endif
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 2))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 2))
#define USE_TELEMETRY_HOTT
#define USE_TELEMETRY_LTM
#define USE_SERIALRX_SUMH // Graupner legacy protocol
#define USE_SERIALRX_XBUS // JR
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 1))
#if ((TARGET_FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 1))
#define USE_BOARD_INFO
#define USE_EXTENDED_CMS_MENUS
#define USE_RTC_TIME
@ -314,9 +314,9 @@
#define USE_RX_RSSI_DBM
#endif
#endif // FLASH_SIZE > 128
#endif // TARGET_FLASH_SIZE > 128
#if (FLASH_SIZE > 256)
#if (TARGET_FLASH_SIZE > 256)
#define USE_AIRMODE_LPF
#define USE_CANVAS
#define USE_DASHBOARD