Added initial version of the hw validation menu

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@238 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
swo
2017-10-06 07:18:43 +00:00
parent d8c5067903
commit ab3301889c
3 changed files with 1262 additions and 14 deletions

View File

@@ -14,6 +14,7 @@ startup_stm32f10x_cl.o \
\
Display.o \
FreeRTOSFixes.o \
hwValidationMenu.o \
\
heap_2.o\
list.o \

View File

@@ -44,27 +44,22 @@
// -----------------------------------------------------------------------------
#define ANSI_TERMINAL_RESET "\x1b[2J"
#define ANSI_TERMINAL_HOME "\x1b[H"
#define CON_INF_MAX_MENU_ITEMS (15)
// -----------------------------------------------------------------------------
// Type definitions.
// -----------------------------------------------------------------------------
struct HwValidationMenu
{
struct IODevice* displayDevice;
TaskHandle_t taskHandle;
int TaskPriority;
uint16_t stackSize;
bool runTask;
};
struct HwValidationMenuItems
{
struct DisplayDevice* display; // DisplayDevice to talk to
struct Adc* internalADC; // Internal ADC with channel array
struct MAX5715* externalDAC; // External DAC with channel array
struct Gpio* power6v5Enable;
struct Gpio* interlock1;
struct Gpio* interlock2;
struct Gpio* solenoid;
@@ -72,12 +67,24 @@ struct HwValidationMenuItems
struct Gpio* mcp1Relay;
struct Gpio* mcp2Relay;
struct Gpio* cat0Relay;
struct Gpio* cat0Relay;
struct Gpio* cat0Relay;
struct Gpio* cat1Relay;
struct Gpio* cat2Relay;
struct Pcba* pcba;
// struct Eeprom* eeprom; // Not implemented yet
};
struct HwValidationMenu
{
TaskHandle_t taskHandle;
int TaskPriority;
uint16_t stackSize;
bool runTask;
struct HwValidationMenuItems* testItems;
int menuItemSelected;
struct IODevice* ioDevice;
};
// -----------------------------------------------------------------------------
// Function declarations
// -----------------------------------------------------------------------------