chore: remove PCBFRSKY definition (#6424)
This commit is contained in:
@@ -146,7 +146,6 @@ const char * const audioFilenames[] = {
|
|||||||
"midstck2",
|
"midstck2",
|
||||||
"midstck3",
|
"midstck3",
|
||||||
"midstck4",
|
"midstck4",
|
||||||
#if defined(PCBFRSKY)
|
|
||||||
"midpot1",
|
"midpot1",
|
||||||
"midpot2",
|
"midpot2",
|
||||||
#if defined(PCBX9E)
|
#if defined(PCBX9E)
|
||||||
@@ -164,11 +163,6 @@ const char * const audioFilenames[] = {
|
|||||||
#if defined(PCBX9E)
|
#if defined(PCBX9E)
|
||||||
"midslid3",
|
"midslid3",
|
||||||
"midslid4",
|
"midslid4",
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
"midpot1",
|
|
||||||
"midpot2",
|
|
||||||
"midpot3",
|
|
||||||
#endif
|
#endif
|
||||||
"mixwarn1",
|
"mixwarn1",
|
||||||
"mixwarn2",
|
"mixwarn2",
|
||||||
@@ -976,15 +970,11 @@ void audioEvent(unsigned int index)
|
|||||||
case AU_POT6_MIDDLE:
|
case AU_POT6_MIDDLE:
|
||||||
case AU_POT7_MIDDLE:
|
case AU_POT7_MIDDLE:
|
||||||
#endif
|
#endif
|
||||||
#if defined(PCBFRSKY)
|
|
||||||
case AU_SLIDER1_MIDDLE:
|
case AU_SLIDER1_MIDDLE:
|
||||||
case AU_SLIDER2_MIDDLE:
|
case AU_SLIDER2_MIDDLE:
|
||||||
#if defined(PCBX9E)
|
#if defined(PCBX9E)
|
||||||
case AU_SLIDER3_MIDDLE:
|
case AU_SLIDER3_MIDDLE:
|
||||||
case AU_SLIDER4_MIDDLE:
|
case AU_SLIDER4_MIDDLE:
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
case AU_POT3_MIDDLE:
|
|
||||||
#endif
|
#endif
|
||||||
audioQueue.playTone(BEEP_DEFAULT_FREQ + 1500, 80, 20, PLAY_NOW);
|
audioQueue.playTone(BEEP_DEFAULT_FREQ + 1500, 80, 20, PLAY_NOW);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -635,7 +635,6 @@ void checkSDfreeStorage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PCBFRSKY) || defined(PCBFLYSKY)
|
|
||||||
static void checkFailsafe()
|
static void checkFailsafe()
|
||||||
{
|
{
|
||||||
for (int i=0; i<NUM_MODULES; i++) {
|
for (int i=0; i<NUM_MODULES; i++) {
|
||||||
@@ -652,9 +651,6 @@ static void checkFailsafe()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
#define checkFailsafe()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(GUI)
|
#if defined(GUI)
|
||||||
void checkAll(bool isBootCheck)
|
void checkAll(bool isBootCheck)
|
||||||
|
|||||||
+3
-9
@@ -502,30 +502,24 @@ enum AUDIO_SOUNDS {
|
|||||||
AU_STICK2_MIDDLE,
|
AU_STICK2_MIDDLE,
|
||||||
AU_STICK3_MIDDLE,
|
AU_STICK3_MIDDLE,
|
||||||
AU_STICK4_MIDDLE,
|
AU_STICK4_MIDDLE,
|
||||||
#if defined(PCBFRSKY)
|
|
||||||
AU_POT1_MIDDLE,
|
AU_POT1_MIDDLE,
|
||||||
AU_POT2_MIDDLE,
|
AU_POT2_MIDDLE,
|
||||||
#if defined(PCBX9E)
|
#if defined(PCBX9E)
|
||||||
AU_POT3_MIDDLE,
|
AU_POT3_MIDDLE,
|
||||||
AU_POT4_MIDDLE,
|
AU_POT4_MIDDLE,
|
||||||
#endif
|
#endif //X9E
|
||||||
#if defined(PCBX10)
|
#if defined(PCBX10)
|
||||||
AU_POT4_MIDDLE,
|
AU_POT4_MIDDLE,
|
||||||
AU_POT5_MIDDLE,
|
AU_POT5_MIDDLE,
|
||||||
AU_POT6_MIDDLE,
|
AU_POT6_MIDDLE,
|
||||||
AU_POT7_MIDDLE,
|
AU_POT7_MIDDLE,
|
||||||
#endif
|
#endif //X10
|
||||||
AU_SLIDER1_MIDDLE,
|
AU_SLIDER1_MIDDLE,
|
||||||
AU_SLIDER2_MIDDLE,
|
AU_SLIDER2_MIDDLE,
|
||||||
#if defined(PCBX9E)
|
#if defined(PCBX9E)
|
||||||
AU_SLIDER3_MIDDLE,
|
AU_SLIDER3_MIDDLE,
|
||||||
AU_SLIDER4_MIDDLE,
|
AU_SLIDER4_MIDDLE,
|
||||||
#endif
|
#endif // X9E
|
||||||
#else
|
|
||||||
AU_POT1_MIDDLE,
|
|
||||||
AU_POT2_MIDDLE,
|
|
||||||
AU_POT3_MIDDLE,
|
|
||||||
#endif
|
|
||||||
AU_MIX_WARNING_1,
|
AU_MIX_WARNING_1,
|
||||||
AU_MIX_WARNING_2,
|
AU_MIX_WARNING_2,
|
||||||
AU_MIX_WARNING_3,
|
AU_MIX_WARNING_3,
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ set(CPU_TYPE_FULL STM32F429xI)
|
|||||||
set(TARGET_LINKER_DIR stm32f429_sdram)
|
set(TARGET_LINKER_DIR stm32f429_sdram)
|
||||||
set(SIZE_TARGET_MEM_DEFINE "MEM_SIZE_SDRAM2=8192")
|
set(SIZE_TARGET_MEM_DEFINE "MEM_SIZE_SDRAM2=8192")
|
||||||
|
|
||||||
add_definitions(-DPCBFRSKY)
|
|
||||||
|
|
||||||
# defines existing internal modules
|
# defines existing internal modules
|
||||||
set(INTERNAL_MODULES PXX1;PXX2;MULTI;CRSF CACHE STRING "Internal modules")
|
set(INTERNAL_MODULES PXX1;PXX2;MULTI;CRSF CACHE STRING "Internal modules")
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ set(FIRMWARE_QSPI ON)
|
|||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DSTM32H7S7xx -DFIRMWARE_QSPI
|
-DSTM32H7S7xx -DFIRMWARE_QSPI
|
||||||
-DSDRAM -DCOLORLCD -DLIBOPENUI -DPCBHORUS -DPCBX10 -DPCBFRSKY
|
-DSDRAM -DCOLORLCD -DLIBOPENUI -DPCBHORUS -DPCBX10
|
||||||
-DHARDWARE_TOUCH -DSOFTWARE_KEYBOARD
|
-DHARDWARE_TOUCH -DSOFTWARE_KEYBOARD
|
||||||
-DAUDIO -DVOICE -DSOFTWARE_VOLUME
|
-DAUDIO -DVOICE -DSOFTWARE_VOLUME
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ set(HSE_VALUE 12000000)
|
|||||||
set(TARGET_DIR taranis)
|
set(TARGET_DIR taranis)
|
||||||
set(PPM_LIMITS_SYMETRICAL YES)
|
set(PPM_LIMITS_SYMETRICAL YES)
|
||||||
|
|
||||||
add_definitions(-DPCBFRSKY -DPCBTARANIS -DAUDIO -DVOICE)
|
add_definitions(-DPCBTARANIS -DAUDIO -DVOICE)
|
||||||
|
|
||||||
if(PCB STREQUAL X9E)
|
if(PCB STREQUAL X9E)
|
||||||
set(DEFAULT_INTERNAL_MODULE XJT_PXX1 CACHE STRING "Default internal module")
|
set(DEFAULT_INTERNAL_MODULE XJT_PXX1 CACHE STRING "Default internal module")
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ void telemetryWakeup()
|
|||||||
audioEvent(AU_SENSOR_LOST);
|
audioEvent(AU_SENSOR_LOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PCBFRSKY)
|
#if defined(PXX1) || defined(PXX2)
|
||||||
if (isBadAntennaDetected()) {
|
if (isBadAntennaDetected()) {
|
||||||
AUDIO_RAS_RED();
|
AUDIO_RAS_RED();
|
||||||
POPUP_WARNING_ON_UI_TASK(STR_WARNING, STR_ANTENNAPROBLEM);
|
POPUP_WARNING_ON_UI_TASK(STR_WARNING, STR_ANTENNAPROBLEM);
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ TEST_F(SpecialFunctionsTest, SwitchFiledSize)
|
|||||||
"values";
|
"values";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PCBFRSKY)
|
|
||||||
TEST_F(SpecialFunctionsTest, FlightReset)
|
TEST_F(SpecialFunctionsTest, FlightReset)
|
||||||
{
|
{
|
||||||
g_model.customFn[0].swtch = SWSRC_FIRST_SWITCH;
|
g_model.customFn[0].swtch = SWSRC_FIRST_SWITCH;
|
||||||
@@ -122,6 +121,3 @@ TEST_F(SpecialFunctionsTest, GvarsInc)
|
|||||||
EXPECT_EQ(g_model.flightModeData[0].gvars[0], 28);
|
EXPECT_EQ(g_model.flightModeData[0].gvars[0], 28);
|
||||||
}
|
}
|
||||||
#endif // #if defined(GVARS)
|
#endif // #if defined(GVARS)
|
||||||
|
|
||||||
#endif // #if defined(PCBFRSKY)
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,12 +46,8 @@ extern const char * nchar2string(const char * string, int size);
|
|||||||
#define EXPECT_ZSTREQ(c_string, z_string) EXPECT_STREQ(c_string, zchar2string(z_string, sizeof(z_string)))
|
#define EXPECT_ZSTREQ(c_string, z_string) EXPECT_STREQ(c_string, zchar2string(z_string, sizeof(z_string)))
|
||||||
#define EXPECT_STRNEQ(c_string, n_string) EXPECT_STREQ(c_string, nchar2string(n_string, sizeof(n_string)))
|
#define EXPECT_STRNEQ(c_string, n_string) EXPECT_STREQ(c_string, nchar2string(n_string, sizeof(n_string)))
|
||||||
|
|
||||||
#if defined(PCBFRSKY)
|
|
||||||
#define RADIO_RESET() \
|
#define RADIO_RESET() \
|
||||||
g_eeGeneral.switchConfig = 0x00007bff
|
g_eeGeneral.switchConfig = 0x00007bff
|
||||||
#else
|
|
||||||
#define RADIO_RESET()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
inline void SYSTEM_RESET()
|
inline void SYSTEM_RESET()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ TEST(getSwitch, inputWithTrim)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PCBFRSKY)
|
|
||||||
TEST(evalLogicalSwitches, playFile)
|
TEST(evalLogicalSwitches, playFile)
|
||||||
{
|
{
|
||||||
SYSTEM_RESET();
|
SYSTEM_RESET();
|
||||||
@@ -135,7 +134,6 @@ TEST(evalLogicalSwitches, playFile)
|
|||||||
|
|
||||||
#undef MODELNAME
|
#undef MODELNAME
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SWSRC_SA2 (SWSRC_FIRST_SWITCH + 2)
|
#define SWSRC_SA2 (SWSRC_FIRST_SWITCH + 2)
|
||||||
#define SWSRC_SD2 (SWSRC_FIRST_SWITCH + 3 * 3 + 2)
|
#define SWSRC_SD2 (SWSRC_FIRST_SWITCH + 3 * 3 + 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user