暂时不使用外部精确时间,那样给编译带来一定麻烦

增加系统名称和版本号
This commit is contained in:
nnhy 2015-02-08 19:46:58 +00:00
parent 710313a737
commit f46dd6eb21
2 changed files with 1 additions and 3 deletions

View File

@ -238,7 +238,6 @@ TSys::TSys()
Name = "SmartOS"; Name = "SmartOS";
Version = 0x01000000; Version = 0x01000000;
BuildTime = "yyyy-MM-dd HH:mm:ss";
Interrupt.Init(); Interrupt.Init();
@ -301,7 +300,7 @@ void TSys::ShowInfo()
#if DEBUG #if DEBUG
byte* ver = (byte*)&Version; byte* ver = (byte*)&Version;
debug_printf("%s v%x.%x.%x.%x Build: %s\r\n", Name, *ver++, *ver++, *ver++, *ver++, BuildTime); debug_printf("%s v%x.%x.%x.%x Build: %s %s\r\n", Name, *ver++, *ver++, *ver++, *ver++, __DATE__, __TIME__);
debug_printf("SmartOS::"); debug_printf("SmartOS::");
if(IsGD) if(IsGD)
debug_printf("GD32"); debug_printf("GD32");

1
Sys.h
View File

@ -80,7 +80,6 @@ public:
char* Name; // 系统名称 char* Name; // 系统名称
uint Version; // 系统版本 uint Version; // 系统版本
char* BuildTime; // 编译时间
uint Clock; // 系统时钟 uint Clock; // 系统时钟
uint CystalClock; // 晶振时钟 uint CystalClock; // 晶振时钟
byte ID[12]; // 芯片ID。 byte ID[12]; // 芯片ID。