SYS_gotoDiagnosis.c File Reference


Detailed Description

This module provides detection algorithm to bring up system diagnosis menu.

REVISION

Definition in file SYS_gotoDiagnosis.c.

#include "sys_hardware.h"
#include "../KEYBOARD/keyboard.h"

Include dependency graph for SYS_gotoDiagnosis.c:

Include dependency graph

Go to the source code of this file.

Functions

BOOL SYS_gotoDiagnosis (void)
 Function detects the keyboard to tell if diagnosis mode is requested by user.


Function Documentation

BOOL SYS_gotoDiagnosis void   ) 
 

Function detects the keyboard to tell if diagnosis mode is requested by user.

At power up, if PRESET1, PRESET5, and PLAY are simultaneously held, system will go to diagnosis mode.

Returns:
TRUE if diagnosis mode is detected, otherwise FALSE.

Definition at line 37 of file SYS_gotoDiagnosis.c.

References KBD_isKeyDown(), KPRESET1, and KPRESET5.

Referenced by SYS_kickoff().

00038 {   
00039     //if( KBD_isKeyDown(KPLAY) == TRUE )
00040     {
00041         if( KBD_isKeyDown(KPRESET1) == TRUE )
00042         {
00043             if( KBD_isKeyDown(KPRESET5) == TRUE ) 
00044             {
00045                 return TRUE;
00046             }
00047         }
00048     }
00049     return FALSE;
00050 }

Here is the call graph for this function:


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