Added buzzer
Added powerloss detector Added buzzer behaviour to system. Added powerloss behaviour to system Added french translation to menu texts git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@359 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "Warning.h"
|
||||
|
||||
#include "platform.h"
|
||||
#include "Buzzer.h"
|
||||
#include "Logger.h"
|
||||
#include "Observable.h"
|
||||
#include "rtc.h"
|
||||
@@ -82,13 +83,13 @@ ErrorStatus repairMenus_construct(void)
|
||||
if (returnValue == SUCCESS)
|
||||
{
|
||||
// Create the Menu core
|
||||
returnValue = MenuCore_construct(menuCore, mainDisplay, &storm700->keyboardDevice, HSB_MAINMENU_TASK_PRIORITY, HSB_MAINMENU_TASK_STACKSIZE, repairMenu_createMenuEntries, repairMenu_menuStateHandle);
|
||||
returnValue = MenuCore_construct(menuCore, mainDisplay, &storm700->keyboardDevice, mainBuzzer, HSB_MAINMENU_TASK_PRIORITY, HSB_MAINMENU_TASK_STACKSIZE, repairMenu_createMenuEntries, repairMenu_menuStateHandle);
|
||||
}
|
||||
|
||||
if (returnValue == SUCCESS)
|
||||
{
|
||||
// Create first repair menu
|
||||
returnValue = repairMenu_construct(mainMenu, menuCore,&iFlash->memoryDevice, repairMenus_freeMainMenuRepairScreenUpdateSemaphore);
|
||||
returnValue = repairMenu_construct(mainMenu, menuCore, &iFlash->memoryDevice, repairMenus_freeMainMenuRepairScreenUpdateSemaphore);
|
||||
}
|
||||
|
||||
if (returnValue == SUCCESS)
|
||||
@@ -124,9 +125,16 @@ static ErrorStatus repairMenus_errorReceive(const void* const data)
|
||||
|
||||
switch (errorCode)
|
||||
{
|
||||
case ERROR_POWER_LOSS:
|
||||
{
|
||||
repairMenu_powerLossDetected(mainMenu);
|
||||
BUZZER_ERROR(mainBuzzer);
|
||||
break;
|
||||
}
|
||||
case INTERLOCK_COMMON_FAIL:
|
||||
{
|
||||
repairMenu_interlockFailed(mainMenu, COMMON_INTERLOCK);
|
||||
BUZZER_ERROR(mainBuzzer);
|
||||
break;
|
||||
}
|
||||
case POWERENABLE_FAIL:
|
||||
@@ -136,6 +144,7 @@ static ErrorStatus repairMenus_errorReceive(const void* const data)
|
||||
case REPAIR_FAIL:
|
||||
{
|
||||
repairMenu_processFailed(mainMenu);
|
||||
BUZZER_ERROR(mainBuzzer);
|
||||
break;
|
||||
}
|
||||
case ERROR_CRC_PIN:
|
||||
@@ -143,6 +152,7 @@ static ErrorStatus repairMenus_errorReceive(const void* const data)
|
||||
case ERROR_CRC_PRESETS:
|
||||
{
|
||||
repairMenu_printCRCFailure(mainMenu, errorCode);
|
||||
BUZZER_ERROR(mainBuzzer);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -163,6 +173,7 @@ static ErrorStatus repairMenus_warningReceive(const void* const data)
|
||||
case WARNING_INTERLOCK_COMMON_FAIL:
|
||||
{
|
||||
repairMenu_interlockWarning(mainMenu, COMMON_INTERLOCK);
|
||||
BUZZER_WARNING(mainBuzzer);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user