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:
@@ -14,6 +14,7 @@ startup_stm32f10x_cl.o \
|
|||||||
\
|
\
|
||||||
Display.o \
|
Display.o \
|
||||||
FreeRTOSFixes.o \
|
FreeRTOSFixes.o \
|
||||||
|
hwValidationMenu.o \
|
||||||
\
|
\
|
||||||
heap_2.o\
|
heap_2.o\
|
||||||
list.o \
|
list.o \
|
||||||
|
|||||||
@@ -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.
|
// Type definitions.
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
struct HwValidationMenu
|
|
||||||
{
|
|
||||||
struct IODevice* displayDevice;
|
|
||||||
TaskHandle_t taskHandle;
|
|
||||||
int TaskPriority;
|
|
||||||
uint16_t stackSize;
|
|
||||||
bool runTask;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
struct HwValidationMenuItems
|
struct HwValidationMenuItems
|
||||||
{
|
{
|
||||||
struct DisplayDevice* display; // DisplayDevice to talk to
|
struct DisplayDevice* display; // DisplayDevice to talk to
|
||||||
struct Adc* internalADC; // Internal ADC with channel array
|
struct Adc* internalADC; // Internal ADC with channel array
|
||||||
struct MAX5715* externalDAC; // External DAC with channel array
|
struct MAX5715* externalDAC; // External DAC with channel array
|
||||||
|
struct Gpio* power6v5Enable;
|
||||||
struct Gpio* interlock1;
|
struct Gpio* interlock1;
|
||||||
struct Gpio* interlock2;
|
struct Gpio* interlock2;
|
||||||
struct Gpio* solenoid;
|
struct Gpio* solenoid;
|
||||||
@@ -72,12 +67,24 @@ struct HwValidationMenuItems
|
|||||||
struct Gpio* mcp1Relay;
|
struct Gpio* mcp1Relay;
|
||||||
struct Gpio* mcp2Relay;
|
struct Gpio* mcp2Relay;
|
||||||
struct Gpio* cat0Relay;
|
struct Gpio* cat0Relay;
|
||||||
struct Gpio* cat0Relay;
|
struct Gpio* cat1Relay;
|
||||||
struct Gpio* cat0Relay;
|
struct Gpio* cat2Relay;
|
||||||
struct Pcba* pcba;
|
struct Pcba* pcba;
|
||||||
// struct Eeprom* eeprom; // Not implemented yet
|
// 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
|
// Function declarations
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user