Library for I-7188XB. <> ================================================================================ [Ver 2.01] ================================================================================ [2004/03/08] 1.fix bug for EnableWDT()/DisableWDT(). [2004/06/01] 1.fix bug for GetDi1(). [2004/07/05] 1.fix bug for ReadComn_3()/ReadComn_4()/ReadComn_5()/ReadComn_6()/ReadComn_7()/ReadComn_8() [2004/08/02] 1.fix bug for COM6/7/8 for put input data to input buffer. 2.add function AllocateTopMemory(). 3.add function CmdToArg(). 4.add functions for COM3/4/5 to read MSR/set MCR on 16C550. [2004/09/09] 1.Add "setvbuf(stdout,NULL,_IONBF,0);" to the function InitLib(). Then user's program can call printf()/puts() & work well. (The OS need update to the date 2004/09/09 or later. Old version also will work, but will lost the last byte it print out. ) 2.Add a variable "bLfMode" for Putch()/Puts()/Print(). when bLfMode is set to 1, these functions will translate '\n' to '\r'+'\n'. The default value of bLfMode is set to 0. [2004/10/13] 1. Add the function GetSerialNumber(). [2005/03/04] 1. Add small model version library. (7188XBS.LIB) [2005/04/08] 1. InitLib() will not call the function "setvbuf(stdout,NULL,_IONBF,0);" Because it is compatible with MSC/MSVC++. So user want to use "printf()" with TC/BC++ must add "setvbuf(stdout,NULL,_IONBF,0);" in his program. [2005/05/27] Add two functions: int SetDelayTimer(int no); int SetUserTimer(int no); for seting the timer used by the delay functions: Delay()/Delay_1()/Delay_2() & InstallUserTimerFunction_us()/InstallUserTimerFunction_ms(). By defualt all these functions will use timer 0, Now it can be set to use timer 1. [2005/07/05] Add functions for the EEPROm on the X-board. (XEE_nnnn() series functions.) These functions will be used in the X-board library. [2005/07/05] Add functions for the EEPROM(24LC16) on X-board. [2006/01/12] Add functions for COM3/4/5: int GetMSR_3(void); int GetMSR_4(void); int GetMSR_5(void); int SetMCR_3(int mcr); int SetMCR_4(int mcr); int SetMCR_5(int mcr); ================================================================================ [Ver 2.02] ================================================================================ [2006/01/25] 1. Add functions for COM6/7/8 on X506. InstallCom_6()/RestoreCom_6() InstallCom_7()/RestoreCom_7() InstallCom_8()/RestoreCom_8() Now InstallCom(6,...) will call InstallCom_6(...); InstallCom(7,...) will call InstallCom_7(...); InstallCom(8,...) will call InstallCom_8(...); and will not influence the baud rate & data format of COM3,COM4,COM5. For the old version (Ver. 2.01), InstallCom(6,...) will call InstallCom_36(...), it will set the baud rate & data format of COM3 & COM6. So if COM3 & COM6 need use different baud rate or data format,after call InstallCom_36() must call SetBaudrate_3()/SetDataFormat_3() or SetBaudrate_6()/ SetDataFormat_6() to set the right value. [2006/02/16] [2006/02/22] 1.bug fixed for function:ReadComn_1()/ReadComn_2().