[X7] S.PORT devices update is now done on the bottom connector (#4457)

* [X7] S.PORT devices update is now done on the bottom connector

* [X7] I introduce a PCBREV option, as previous versions didn't have this S.PORT bottom connector

* [X7] Introduce a PCBREV PIN to avoid having different 2 different firmware on X7

* Compilation fix

* [X7] PCBREV PIN was inverted

* [X7] PULL DOWN on PCBREV PIN

* S.PORT bottom connector is powered by PB.02, not PB.01

* [X7] PCBREV resistor changed

* [X7] PCBREV resistor changed
This commit is contained in:
Bertrand Songis
2017-02-21 11:03:37 +01:00
committed by GitHub
parent 2fbd1d8955
commit 24c0f5008d
6 changed files with 88 additions and 5 deletions
+4 -3
View File
@@ -182,7 +182,7 @@ const char * sportUpdatePowerOn(ModuleIndex module)
if (module == INTERNAL_MODULE)
INTERNAL_MODULE_ON();
else
EXTERNAL_MODULE_ON();
SPORT_UPDATE_POWER_ON();
#endif
sportWaitState(SPORT_IDLE, 50); // Clear the fifo
@@ -196,7 +196,8 @@ const char * sportUpdatePowerOn(ModuleIndex module)
if (sportWaitState(SPORT_POWERUP_ACK, 100))
return NULL;
}
return "Module not responding";
return TR("Not responding", "Module not responding");
}
const char * sportUpdateReqVersion()
@@ -305,7 +306,7 @@ void sportFlashDevice(ModuleIndex module, const char * filename)
#if defined(PCBTARANIS) || defined(PCBHORUS)
INTERNAL_MODULE_OFF();
EXTERNAL_MODULE_OFF();
SPORT_UPDATE_POWER_OFF();
#endif
sportWaitState(SPORT_IDLE, 500); // Clear the fifo