REVISION
Definition in file MENU__properties.c.
#include "../SYSTEM/sys_hardware.h"
#include "../SYSTEM/sys_main.h"
#include "../SYSTEM/rtc_inc.h"
#include "menu.h"
#include "menu_assert.h"
#include "../UI/ui.h"
#include "../ear/ear.h"
#include "../GENERIC/eeprom.h"
Include dependency graph for MENU__properties.c:

Go to the source code of this file.
Functions | |
| void | MENU__createPropertiesMenu (HMENU menu) |
| Function creates the properties menu display. | |
|
|
Function creates the properties menu display.
Definition at line 44 of file MENU__properties.c. References DISK_D, st_FIELD::dptr, FAT_freeSpace(), st_MENUTMPLT::fld, st_MENUTMPLT::fldNum, GEN_createSizeString(), GEN_eepromRead(), LCD_printFld(), st_SYSPARAM::memSync, MENU__create(), RTC_SPIRD, and st_MENU_REGIST::tmplt. 00045 {
00046 st_MENUTMPLT * pTmplt;
00047 st_FIELD * pFld;
00048 char str[16];
00049 ULONG freeSpace;
00050
00051 /* Load display pattern template. -----------------------------------------*/
00052 pTmplt = &MENU_regist[menu].tmplt;
00053
00054 /* Create the generic part. -----------------------------------------------*/
00055 if(!SYS_isNeurosPro())
00056 {
00057 pTmplt->fldNum -= 2;
00058 }
00059
00060 MENU__create(menu);
00061
00062 // Version.
00063 pFld = &pTmplt->fld[6];
00064 if(SYS_is20HDD())
00065 {
00066 char strVer[16];
00067 char * pC;
00068 USHORT ver;
00069
00070 ver = (RTC__spi(RTC_SPIRD, SPI_VERSION_MAJOR + PSOCBATRD)<<8)&0x0ff00;
00071 ver |= (RTC__spi(RTC_SPIRD, SPI_VERSION_MINOR + PSOCBATRD)&0x0ff);
00072
00073 GEN_readXstr((ULONG)text_OSversion, (USHORT*)strVer, 16);
00074 pC = strVer + strlen(strVer);
00075 *pC++ = ('.'<<8)|(hex2ascii((ver>>12)&0x0f));
00076 *pC++ = ((hex2ascii((ver>>8)&0x0f))<<8)|(hex2ascii((ver>>4)&0x0f));
00077 *pC++ = (hex2ascii(ver&0x0f))<<8;
00078 *pC = 0;
00079
00080 pFld->dptr = (ULONG)strVer;
00081 }
00082 else pFld->dptr = (ULONG)text_OSversion;
00083 LCD_printFld(pFld, NULL);
00084
00085 // Mem. free
00086 freeSpace = FAT_freeSpace(SYS_isHDDpresent()?DISK_C: DISK_D);
00087 pFld = &pTmplt->fld[2];
00088 GEN_createSizeString(freeSpace, str);
00089 pFld->dptr = (ULONG)str;
00090 LCD_printFld(pFld, NULL);
00091
00092 // Mem. pending
00093 pFld = &pTmplt->fld[4];
00094 GEN_createSizeString(sysParam.memSync + freeSpace, str);
00095 pFld->dptr = (ULONG)str;
00096 LCD_printFld(pFld, NULL);
00097
00098 if(SYS_isNeurosPro())
00099 {
00100 unsigned short owner[6];
00101
00102 // Display owner name.
00103 pFld = &pTmplt->fld[10];
00104
00105 GEN_eepromRead(OWNER_NAME, 10, (int *)owner);
00106 owner[5] = 0;
00107 pFld->dptr = (ULONG)owner;
00108 LCD_printFld(pFld, NULL);
00109 }
00110 }
|
Here is the call graph for this function:

1.3.9.1