Remove SKY9X target

This commit is contained in:
Raphael Coeffic
2022-01-29 14:40:17 +10:00
committed by Peter Feerick
parent 5601bd53b2
commit 09c49e24ee
166 changed files with 24 additions and 38415 deletions
-50
View File
@@ -31,9 +31,6 @@
#include "view_text.h"
#endif
#if defined(PCBSKY9X)
#include "audio_driver.h"
#endif
extern uint16_t get_flysky_hall_adc_value(uint8_t ch);
@@ -56,9 +53,7 @@ safetych_t safetyCh[MAX_OUTPUT_CHANNELS];
// __DMA for the MSC_BOT_Data member
union ReusableBuffer reusableBuffer __DMA;
#if defined(STM32)
uint8_t* MSC_BOT_Data = reusableBuffer.MSC_BOT_Data;
#endif
#if defined(DEBUG_LATENCY)
uint8_t latencyToggleSwitch = 0;
@@ -602,11 +597,6 @@ void doSplash()
resetBacklightTimeout();
drawSplash();
#if defined(PCBSKY9X)
tmr10ms_t curTime = get_tmr10ms() + 10;
uint8_t contrast = 10;
lcdSetRefVolt(contrast);
#endif
getADC(); // init ADC array
@@ -640,15 +630,6 @@ void doSplash()
}
#endif
#if defined(PCBSKY9X)
if (curTime < get_tmr10ms()) {
curTime += 10;
if (contrast < g_eeGeneral.contrast) {
contrast += 1;
lcdSetRefVolt(contrast);
}
}
#endif
checkBacklight();
}
@@ -675,7 +656,6 @@ void checkMultiLowPower()
}
#endif
#if defined(STM32)
static void checkRTCBattery()
{
GET_ADC_IF_MIXER_NOT_RUNNING();
@@ -683,7 +663,6 @@ static void checkRTCBattery()
ALERT(STR_BATTERY, STR_WARN_RTC_BATTERY_LOW, AU_ERROR);
}
}
#endif
#if defined(PCBFRSKY) || defined(PCBFLYSKY)
static void checkFailsafe()
@@ -718,13 +697,11 @@ void checkAll()
checkFailsafe();
#if defined(STM32)
if (isVBatBridgeEnabled() && !g_eeGeneral.disableRtcWarning) {
// only done once at board start
checkRTCBattery();
}
disableVBatBridge();
#endif
if (g_model.displayChecklist && modelHasNotes()) {
readModelNotes();
@@ -1290,11 +1267,6 @@ void doMixerCalculations()
getSwitchesPosition(!s_mixer_first_run_done);
DEBUG_TIMER_STOP(debugTimerGetSwitches);
#if defined(PCBSKY9X) && !defined(SIMU)
Current_analogue = (Current_analogue*31 + s_anaFilt[8] ) >> 5 ;
if (Current_analogue > Current_max)
Current_max = Current_analogue ;
#endif
DEBUG_TIMER_START(debugTimerEvalMixes);
@@ -1452,11 +1424,6 @@ void opentxStart(const uint8_t startOptions = OPENTX_START_DEFAULT_ARGS)
trace_event(trace_start, 0x12345678);
#endif
#if defined(PCBSKY9X) && defined(SDCARD) && !defined(SIMU)
for (int i=0; i<500 && !Card_initialized; i++) {
RTOS_WAIT_MS(2); // 2ms
}
#endif
#if defined(TEST_BUILD_WARNING)
ALERT(STR_TEST_WARNING, TR_TEST_NOTSAFE, AU_ERROR);
@@ -1513,12 +1480,6 @@ void opentxClose(uint8_t shutdown)
sessionTimer = 0;
}
#if defined(PCBSKY9X)
uint32_t mAhUsed = g_eeGeneral.mAhUsed + Current_used * (488 + g_eeGeneral.txCurrentCalibration) / 8192 / 36;
if (g_eeGeneral.mAhUsed != mAhUsed) {
g_eeGeneral.mAhUsed = mAhUsed;
}
#endif
g_eeGeneral.unexpectedShutdown = 0;
storageDirty(EE_GENERAL);
@@ -1550,7 +1511,6 @@ void opentxClose(uint8_t shutdown)
#endif
}
#if defined(STM32)
void opentxResume()
{
TRACE("opentxResume");
@@ -1583,7 +1543,6 @@ void opentxResume()
storageDirty(EE_GENERAL);
}
}
#endif
#define INSTANT_TRIM_MARGIN 10 /* around 1% */
@@ -1918,14 +1877,7 @@ void opentxInit()
audioQueue.start();
BACKLIGHT_ENABLE();
#if defined(PCBSKY9X)
// Set ADC gains here
setSticksGain(g_eeGeneral.sticksGain);
#endif
#if defined(PCBSKY9X) && defined(BLUETOOTH)
btInit();
#endif
#if defined(SPORT_UPDATE_PWR_GPIO)
SPORT_UPDATE_POWER_INIT();
@@ -1984,7 +1936,6 @@ int main()
initialise_monitor_handles();
#endif
#if defined(STM32)
#if !defined(SIMU)
/* Ensure all priority bits are assigned as preemption priority bits. */
@@ -1999,7 +1950,6 @@ int main()
sizeof(reusableBuffer.hardwareAndSettings),
sizeof(reusableBuffer.spectrumAnalyser),
sizeof(reusableBuffer.MSC_BOT_Data));
#endif
// G: The WDT remains active after a WDT reset -- at maximum clock speed. So it's
// important to disable it before commencing with system initialisation (or