We waited for inputs stabilization on all radios in 2.2

This commit is contained in:
Bertrand Songis
2019-12-02 09:35:49 +01:00
parent f099a0c44f
commit 4817a1404e
3 changed files with 0 additions and 5 deletions
@@ -210,14 +210,12 @@ int main()
pwrInit(); pwrInit();
keysInit(); keysInit();
#if defined(BOOTLOADER_WAIT_BEFORE_READ_TRIMS)
// wait a bit for the inputs to stabilize... // wait a bit for the inputs to stabilize...
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) { if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
for (uint32_t i = 0; i < 150000; i++) { for (uint32_t i = 0; i < 150000; i++) {
__ASM volatile ("nop"); __ASM volatile ("nop");
} }
} }
#endif
// LHR & RHL trims not pressed simultanously // LHR & RHL trims not pressed simultanously
if (readTrims() != BOOTLOADER_KEYS) { if (readTrims() != BOOTLOADER_KEYS) {
-2
View File
@@ -140,8 +140,6 @@
#define SWITCHES_GPIO_PIN_J GPIO_Pin_0 // PB.00 #define SWITCHES_GPIO_PIN_J GPIO_Pin_0 // PB.00
#endif #endif
#define BOOTLOADER_WAIT_BEFORE_READ_TRIMS
// Trims // Trims
#if defined(PCBX12S) #if defined(PCBX12S)
#define TRIMS_GPIO_REG_RHL GPIOC->IDR #define TRIMS_GPIO_REG_RHL GPIOC->IDR
-1
View File
@@ -228,7 +228,6 @@
#define TRIMS_GPIO_REG_RHL GPIOD->IDR #define TRIMS_GPIO_REG_RHL GPIOD->IDR
#define TRIMS_GPIO_PIN_RHL GPIO_Pin_9 // PD.09 #define TRIMS_GPIO_PIN_RHL GPIO_Pin_9 // PD.09
#elif defined(PCBX9DP) && PCBREV >= 2019 #elif defined(PCBX9DP) && PCBREV >= 2019
#define BOOTLOADER_WAIT_BEFORE_READ_TRIMS
#define TRIMS_GPIO_REG_LHL GPIOE->IDR #define TRIMS_GPIO_REG_LHL GPIOE->IDR
#define TRIMS_GPIO_PIN_LHL GPIO_Pin_3 // PE.03 #define TRIMS_GPIO_PIN_LHL GPIO_Pin_3 // PE.03
#define TRIMS_GPIO_REG_LHR GPIOE->IDR #define TRIMS_GPIO_REG_LHR GPIOE->IDR