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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user