Bsongis/issue 3600 emergency shutdown (#3602)

* [ARM] Fixes #3600 - Emergency shutdown

* Compilation fix

* Function renamed

* Compilation fix

* Compilation fix

* Compilation fix

* Suggestion from projectkk2glider
This commit is contained in:
Bertrand Songis
2016-06-17 07:32:33 +02:00
committed by GitHub
parent 238943f4a2
commit 4445f7cdec
7 changed files with 89 additions and 41 deletions
+7 -4
View File
@@ -1310,15 +1310,18 @@ int lcdRestoreBackupBuffer()
}
#endif
#if defined(PWR_BUTTON_DELAY)
uint32_t pwrPressed() { return false; }
#elif defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
uint32_t pwroffPressed() { return false; }
#if defined(CPUARM) && !defined(PWR_BUTTON_DELAY)
uint32_t pwrCheck() { return true; }
#endif
#if defined(CPUARM)
void pwrOff() { }
#endif
#if defined(CPUSTM32)
void pwrInit() { }
void pwrOff() { }
int usbPlugged() { return false; }
void USART_DeInit(USART_TypeDef* ) { }
ErrorStatus RTC_SetTime(uint32_t RTC_Format, RTC_TimeTypeDef* RTC_TimeStruct) { return SUCCESS; }