Library for I-8000_ALL (40M or 80M CPU).
(A) must call InitLib(); first.

[Ver 2.01]

[2004/06/25]
1.fix bug for RefreshWDT() to work with FlashErase()/FlashWrite().

[2004/07/05]
1.fix bug for ReadComn_3()/ReadComn_4()

[2004/07/26]
1.modify functions for i-8050.
2.add functions for COM4 DSR/DTR.
  The DSR/DTR functions (*) can work well only when COM4 can use interrupt mode(*2).

(*1)
the variables : 
	CurMsr_4,bMsrChanged_4.
the functions : 
	void SetDsrControlMode_4(int mode);/* not finished */
	void SetDtrControlMode_4(int mode);/* not finished */

(*2)
COM4 on I-8000 series can use interrupt mode when
1. the CPU of I-8000 is Am188ES.
or
2. COM0 does not use DMA mode.
(When the CPU is RDC R1120 or R8820 can not support both COM0 DMA & COM4 interrupt.) 

[2004/07/27]
Add functions for COM2 on I-8x1x.
InstallCom_2()/RestoreCom_2()/IsCom_2()/ReadCom_2()... always WORK.
But need call AddCom2Fun() for InstallCom(2,..)/RestoreCom(2)/IsCom(2)/ReadCom(2)... to work.

[2004/08/06]
fix bug: function ReadInitPin() will not return the right status on 40M CPU.

[2004/10/13]
Add function GetSerialNumber(). 
Now Only 40M CPU card for I-8x3x support 8 bytes H/W serial number.