UI_MSF_diagnosis.c File Reference


Detailed Description

This module provides diagnosis menu support.

REVISION

Definition in file UI_MSF_diagnosis.c.

#include "ui.h"
#include "ui_assert.h"
#include "../SYSTEM/sys_hardware.h"
#include "../SYSTEM/sys_main.h"
#include "../basicboot/bootmode.h"

Include dependency graph for UI_MSF_diagnosis.c:

Include dependency graph

Go to the source code of this file.

Functions

STATE UI_MSF_diagnosis (st_MSG *msgIN)
 Function serves as the diagnosis menu state handle.
void UI_MENU_diagnosis (void)
 Funciton sets up the diagnosis menu display.


Function Documentation

STATE UI_MSF_diagnosis st_MSG msgIN  ) 
 

Function serves as the diagnosis menu state handle.

Parameters:
msgIN Input message from UI.
Returns:
Next UI state.

Definition at line 41 of file UI_MSF_diagnosis.c.

References BOOT_MAIN.

00042 {
00043     MSG_ID          id = msgIN->id;     
00044     MSG_DATA        d1 = msgIN->d1; 
00045 
00046     if( (KBD_MSG_ID == id)&&(KEY_SELECT == d1) )
00047     {
00048         switch(actvItem)
00049         {               
00050             case 1: // nand
00051                 GEN_pushStack(MENU_DIAGNOSIS);
00052                 GEN_pushStack(MENU_DIAG_NAND);  
00053                 return S_MENU;
00054                 
00055             case 2: // hdd
00056                 if(SYS_isHDDpresent())
00057                 {
00058                     GEN_pushStack(MENU_DIAGNOSIS);
00059                     GEN_pushStack(MENU_DIAG_HDD);   
00060                     return S_MENU;
00061                 }
00062                 break;
00063                 
00064             case 3: // Exit
00065                 SYS_reboot(BOOT_MAIN);
00066         }   
00067     }
00068     
00069     return S_MENU_STAY;
00070 }


Generated on Wed Jan 19 01:13:28 2005 for neuros-firmware by  doxygen 1.3.9.1