[Feature][ZXW-33]merge ZXW 0428 version
Change-Id: I11f167edfea428d9fab198ff00ff1364932d1b0b
diff --git a/ap/hostapp/zdownloader/CSerial.h b/ap/hostapp/zdownloader/CSerial.h
new file mode 100755
index 0000000..67e67fe
--- /dev/null
+++ b/ap/hostapp/zdownloader/CSerial.h
@@ -0,0 +1,20 @@
+#ifndef CSERIAL_H_INCLUDED
+#define CSERIAL_H_INCLUDED
+
+#include "define.h"
+
+#define BAUDRATE B115200
+#define READLENGTH 1024
+#define CFLAGS_TO_SET (CREAD | HUPCL)
+#define CFLAGS_TO_CLEAR (CSTOPB | PARENB | CLOCAL)
+#define CFLAGS_HARDFLOW (CRTSCTS)
+
+int Open(const char *portName);
+int Close();
+/* send AT cmd, and return */
+int SendATString(const char *Dev_tty, const char *AtString, char *RebackString);
+BOOL SendData(const BYTE *pbyWriteBuffer, size_t dwWriteCount, DWORD dwSleepAfterAction, DWORD dwTimeoutCount);
+BOOL ReadData(BYTE *pbyWriteBuffer, size_t dwWriteCount, DWORD dwSleepAfterAction, DWORD dwTimeoutCount);
+BYTE *ReadDataExtraFuncB(DWORD dwReadCount, DWORD dwSleepAfterAction,DWORD dwTimeoutCount);
+
+#endif // CSERIAL_H_INCLUDED