Allow sdcard version change from cmake (#3816)

* Allow sdcard version change from cmake

* Make it sdcard version check ARM only

* Move to common ARM
This commit is contained in:
3djc
2016-09-17 08:53:01 +02:00
committed by Bertrand Songis
parent 6c38dcc885
commit 7bfb213687
7 changed files with 21 additions and 18 deletions
+2 -5
View File
@@ -124,15 +124,12 @@
#define NUM_CYC 3
#define NUM_CAL_PPM 4
#if defined(SDCARD)
#define REQUIRED_SDCARD_VERSION "2.2V0001"
#endif
enum CurveType {
CURVE_TYPE_STANDARD,
CURVE_TYPE_CUSTOM,
CURVE_TYPE_LAST = CURVE_TYPE_CUSTOM
};
#if defined(CPUARM)
#define MIN_POINTS_PER_CURVE 3
#else
@@ -729,7 +726,7 @@ enum MixSources {
MIXSRC_FIRST_INPUT, LUA_EXPORT_MULTIPLE("input", "Input [I%d]", MAX_INPUTS)
MIXSRC_LAST_INPUT = MIXSRC_FIRST_INPUT+MAX_INPUTS-1,
#endif
#if defined(LUA_INPUTS)
MIXSRC_FIRST_LUA,
MIXSRC_LAST_LUA = MIXSRC_FIRST_LUA+(MAX_SCRIPTS*MAX_SCRIPT_OUTPUTS)-1,
+8 -8
View File
@@ -980,7 +980,7 @@ void doSplash()
#define doSplash()
#endif
#if defined(SDCARD)
#if defined(SDCARD) && defined(CPUARM)
void checkSDVersion()
{
if (sdMounted()) {
@@ -1038,7 +1038,7 @@ void checkAll()
checkFailsafe();
#endif
#if defined(SDCARD)
#if defined(SDCARD) && defined(CPUARM)
checkSDVersion();
#endif
@@ -1877,7 +1877,7 @@ void opentxClose(uint8_t shutdown)
hapticOff();
#endif
}
#if defined(SDCARD)
logsClose();
#endif
@@ -1919,21 +1919,21 @@ void opentxClose(uint8_t shutdown)
void opentxResume()
{
TRACE("opentxResume");
menuHandlers[0] = menuMainView;
sdMount();
storageReadAll();
#if defined(PCBHORUS)
loadTheme();
loadFontCache();
#endif
opentxStart(false);
#if defined(CPUARM)
#if defined(CPUARM)
referenceSystemAudioFiles();
#endif
@@ -75,6 +75,7 @@ endif()
add_definitions(-DCPUARM -DVIRTUAL_INPUTS)
add_definitions(-DTELEMETRY_FRSKY -DTELEMETRY_FRSKY_SPORT -DFRSKY_HUB -DGPS -DPXX -DDSM2)
add_definitions(-DBOLD_FONT -DBATTGRAPH -DTHRTRACE -DGAUGES)
add_definitions(-DREQUIRED_SDCARD_VERSION="${SDCARD_VERSION}")
include_directories(${COOS_DIR} ${COOS_DIR}/kernel ${COOS_DIR}/portable)
foreach(LANGUAGE ${TTS_LANGUAGES})
set(SRC ${SRC} translations/tts_${LANGUAGE}.cpp)