Fixed some major issues with RAM shortage. Also moved the cached storage to a MALLOC design instead of fixed memory usage. Using freertos porteds malloc and free required to move to HEAP4 to make sure memory does not get fragmented.
Resized nearly all task stacks Also: - Menu fixes for insertion. Almost done, just need to fix the negative voltage insertion for mcp and cathode - Added Device parameters, must be filled in git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@271 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
// -----------------------------------------------------------------------------
|
||||
/// @file MenuStates.h
|
||||
/// @brief File description
|
||||
// -----------------------------------------------------------------------------
|
||||
// Micro-Key bv
|
||||
// Industrieweg 28, 9804 TG Noordhorn
|
||||
// Postbus 92, 9800 AB Zuidhorn
|
||||
// The Netherlands
|
||||
// Tel: +31 594 503020
|
||||
// Fax: +31 594 505825
|
||||
// Email: support@microkey.nl
|
||||
// Web: www.microkey.nl
|
||||
// -----------------------------------------------------------------------------
|
||||
/// $Revision$
|
||||
/// $Author$
|
||||
/// $Date$
|
||||
// (c) 2015 Micro-Key bv
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
/// @defgroup {group_name} {group_description}
|
||||
/// Description
|
||||
|
||||
/// @file MenuStates.h
|
||||
/// @ingroup {group_name}
|
||||
|
||||
#ifndef MENUSTATES_H_
|
||||
#define MENUSTATES_H_
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Include files
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Type definitions.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
typedef enum
|
||||
{
|
||||
// --------------------------------------------------------------------------
|
||||
// MAIN MENU
|
||||
// --------------------------------------------------------------------------
|
||||
RM_MAINMENU = 0,
|
||||
// For Cathode/MCP, a menu screen is required prior to the repair menu
|
||||
RM_REPAIR_CATHODEMCP_SELECT,
|
||||
// --------------------------------------------------------------------------
|
||||
// REPAIR TUBE MENUs
|
||||
// --------------------------------------------------------------------------
|
||||
// The repair menu screen
|
||||
RM_REPAIRMENU,
|
||||
// Select and show presets
|
||||
RM_PRESETMENU,
|
||||
RM_PRESET_PRINT,
|
||||
// Repair screens
|
||||
RM_START_REPAIR,
|
||||
RM_REPAIR_RUNNING,
|
||||
RM_FINISH_CONTROL,
|
||||
RM_FINISH,
|
||||
// Pause screens
|
||||
RM_REPAIR_ASK_PAUSE,
|
||||
RM_REPAIR_PAUSE,
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// ADMINISTRATION MENUs
|
||||
// --------------------------------------------------------------------------
|
||||
RM_ADMIN_CATHODEMCP_SELECT,
|
||||
RM_ADMINMENU,
|
||||
RM_ADMIN_CHANGEPIN,
|
||||
RM_ADMIN_IOCONTROL,
|
||||
RM_ADMIN_PRESET_CONFIG_SELECT,
|
||||
RM_ADMIN_PRESET_CONFIG_FIRST_SOFTSTART,
|
||||
RM_ADMIN_PRESET_CONFIG_FIRST_DURATION,
|
||||
RM_ADMIN_PRESET_CONFIG_FIRST_VOLTAGE,
|
||||
RM_ADMIN_PRESET_CONFIG_SECOND_SOFTSTART,
|
||||
RM_ADMIN_PRESET_CONFIG_SECOND_DURATION,
|
||||
RM_ADMIN_PRESET_CONFIG_SECOND_VOLTAGE,
|
||||
RM_ADMIN_INFO,
|
||||
|
||||
RM_ADMIN_IO_INTERLOCK,
|
||||
RM_ADMIN_IO_SOLENOID,
|
||||
RM_ADMIN_IO_VOLTAGE_IN,
|
||||
RM_ADMIN_IO_VOLTAGE_OUT,
|
||||
RM_ADMIN_IO_TESLAGUN,
|
||||
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// CALIBRATION MENUs
|
||||
// --------------------------------------------------------------------------
|
||||
RM_CALIBRATIONMENU,
|
||||
|
||||
RM_ERROR_STATE,
|
||||
RM_WARNING_STATE,
|
||||
RM_NO_MENU,
|
||||
RM_NUMBER_OF_MENUS
|
||||
} T_MenuState;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Function declarations
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#endif /* MENUSTATES_H_ */
|
||||
Reference in New Issue
Block a user