zte's code,first commit
Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/app/ccapp/cc_com.h b/ap/app/ccapp/cc_com.h
new file mode 100644
index 0000000..8511832
--- /dev/null
+++ b/ap/app/ccapp/cc_com.h
@@ -0,0 +1,85 @@
+/**************************************************************************
+*
+* Copyright (c) 2013 ZTE Corporation.
+*
+***************************************************************************
+* Ä£ ¿é Ãû : cc
+* ÎÄ ¼þ Ãû : cc_com.h
+* Ïà¹ØÎļþ :
+* ʵÏÖ¹¦ÄÜ : ccÄ£¿é¹«¹²ºê¡¢ÀàÐͶ¨Òå
+* ×÷ Õß :
+* °æ ±¾ :
+* Íê³ÉÈÕÆÚ :
+* ÆäËü˵Ã÷ :
+**************************************************************************/
+
+/**************************************************************************
+* Ð޸ļǼ :
+***************************************************************************/
+/**************************************************************************
+* Ð޸ıàºÅ :
+* ÐÞ ¸Ä ÈË :
+* ÐÞ¸ÄÈÕÆÚ :
+* ÐÞ¸ÄÄÚÈÝ :
+**************************************************************************/
+#ifndef _cc_com_h_
+#define _cc_com_h_
+
+#include <sys/types.h>
+#include "os_type_def.h"
+
+
+#define _USE_PRINTF
+#ifdef _USE_PRINTF
+ #define Z_PRINTF(X) zOss_Printf X
+#else
+ #define Z_PRINTF(X)
+#endif
+
+#define FD_SET_SIZE 10
+
+#ifdef TEST_CCAPP
+typedef struct
+{
+ UINT8 set[(FD_SET_SIZE + 8 - 1) / 8];
+} fd_set;
+struct timeval
+{
+ UINT32 tv_sec; /* seconds */
+ UINT32 tv_usec; /* microseconds */
+};
+
+#define FD_SET(fd, fdset) \
+true
+#define FD_ZERO(fdset) memset(fdset, 0, sizeof(fd_set))
+
+#define FD_ISSET(fd, fdset) \
+true
+
+#endif
+typedef struct
+{
+ CHAR prompt; //prompt after reciving data
+ int baudrate; //baudrate
+ CHAR databit; //data bits, 5, 6, 7, 8
+ CHAR debug; //debug mode, 0: none, 1: debug
+ CHAR echo; //echo mode, 0: none, 1: echo
+ CHAR fctl; //flow control, 0: none, 1: hardware, 2: software
+ CHAR tty; //tty: 0, 1, 2, 3, 4, 5, 6, 7
+ CHAR parity; //parity 0: none, 1: odd, 2: even
+ CHAR stopbit; //stop bits, 1, 2
+ int reserved; //reserved, must be zero
+}T_CC_APP_Portinfo;
+#ifndef TEST_CCAPP
+int zCc_CleanCCMSG(void);
+int zCcApp_GetAtCmdFd(void);
+int zCcApp_PortRecv(int fdcom, CHAR *data, int datalen);
+int zCcApp_PortSend(int fdcom, CHAR *data, int datalen);
+int zCcApp_StartComm(void);
+int zCcApp_StartComm(void);
+int zCcApp_PortOpen(char* DevName);
+int zCcApp_GetAtIndFd(void);
+int zCcApp_GetAtCCFd(void);
+#endif
+
+#endif