/* Hello.c : Reads library version and flash memory size. Compiler: BC++ 3.1, Turbo C ++ 1.01(3.01) (free from http://community.borland.com/museum) MSC 6.0, MSVC 1.52. Compile mode: large Project: Hello.c ..\Lib\7188el.Lib Detail description: User can use MiniOS7 utility to load hello.exe to 7188E. Hardware: 7188E [07/Dec/2006] by Liam [July,13,2011] by Nicholas */ #include "..\..\lib\7188e.h" void main(void) { int iType,iVer; InitLib(); iType=Is7188e(); if(iType) { iVer=GetLibVersion(); Print("Hello 7188E! (Flash memory is %d K)\n\r", iType); Print("Library version is %d.%02d\r\n", iVer>>8, iVer&0xff); } else { Print("Hello PC!, this program is not run under 7188E."); } }