/*******************************************************/ /* */ /* Library for I-7188. */ /* */ /*******************************************************/ Important notice: (A) must call InitLib(); first. Ver 2.10 [2010/08/03] 1.Added: Support OS7_COM.lib Ver 1.1.0 [2010/08/25] 1.Added: add "_asm cld" for com port ISR. [2010/09/08] 1.Modified: Adjust optimization of BC++ 3.1 and re-compiler. 2.Modified: Modify for ToComBufn_x(). Ver 2.09 [2009/07/30] and [2010/06/14] 1.Added: Support 8N2,8M1,8S1 for COM1/COM2 Ver 2.08 [2008/01/09] 1.Fixed: fix a bug for ToComBufn(). The bug will result in the wrong data is sent. ToComStr() and printCom() functions are also influenced. Ver 2.07 [2008/01/09] 1.Added: Add EE_Stop() in the code of EE_WiteProtect(). 2.Added: If the codes that read ACK are found in others codes, to add a judgement codes. The judgement codes are that if there is a error to be happened, calling EE_Stop() to finish. Ver 2.06 [2007/07/24] 1.Modified: Modify the return value of ToComBufn() to represent the byte number of the data sent. [2007/09/05] 1.Modified: Change the type of trigger of interrupt of X-board to level trigger. [2007/10/02] 1.Added: Add a return value for XEE_Init(). Ver 2.05 [2007/07/06] 1.Add: Add three functions. unsigned GetOsLibVersion(void); char *GetOsLibDate(void); char *GetOsLibName(void); Ver 2.04 1. Added: Add some functions for com port about MSR/trigger level/MCR and etc. Ver 2.03 1.Fixed: The data loss problem of COM1/COM2 by using Com port DMA functions. ================================================================================ [Chinese Big5]------------------------------------------------------------------ == [改版說明] ================================================================== Ver 2.10 [2010/08/03] 1.支援 OS7_COM.lib Ver 1.1.0 版 [2010/08/25] 1.修改 com port ISR.加上 _asm cld; [2010/09/08] 1.調整 BC++ 3.1 的 optimization 選項重新編譯。 2.ToComBufn_x() 稍微修改。 Ver 2.09 [2009/07/30] and [2010/06/14] 1.COM1/COM2 加上支援 8N2,8M1,8S1. Ver 2.08 [2008/01/09] 1.修正ToComBufn()的bug,此bug會導致送出錯誤的data。ToComStr() printCom() 都有影響。 Ver 2.07 [2008/01/09] [2007/12/18~21] 1.修改 EE_WiteProtect(), 在程式碼中加上EE_Stop()的呼叫. 2.其他有讀 ACK 的地方也加上判斷,出現錯誤就呼叫 EE_Stop() 結束。 Ver 2.06 [2007/07/24] 1.ToComBufn()的return值修正為送出data的byte 數。 [2007/09/05] 1.X-board 的UART中斷改用level trigger. [2007/10/02] 1.XEE_Init() 加上 return value。 Ver 2.05 [2007/07/06] 1.加上副程式: unsigned GetOsLibVersion(void); char *GetOsLibDate(void); char *GetOsLibName(void); Ver 2.04 1.加上(補齊)一些 com port 的副程式(跟 MSR/trigger level/MCR... 等有關)。 Ver 2.03 1.修正 COM1/2 使用 DMA 可能會掉 data 的問題。