BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
gui.c
Go to the documentation of this file.
1 #include "includes.h"
2 
3 #define GuiIdleState 0
4 #define GuiInitialState 1
5 #define GuiUpdateState 2
6 
8 
9 void F_GuiInit(void){
10  GuiCtrl.Status=0;
11  GuiCtrl.State=GuiIdleState;
12 }
13 void F_GuiSvc(void){
14  switch(GuiCtrl.State){
15  case GuiIdleState:
16  break;
17  case GuiInitialState:
18  // do vga initial
19  // do window initial
20  break;
21  case GuiUpdateState:
22  // update vga memory if need.
23  break;
24  }
25 }