12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef __MAIN_H_
- #define __MAIN_H_
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include "pt.h"
- #include "pt-timer.h"
- #include "platform.h"
- #include "datatype.h"
- #include "common.h"
- extern T_BOOL appQuit;
- void hpocRun(void);
- #define TUP_SEND_DATA_MAX 1024
- #define OUTTER_BUF_LEN_MAX (TUP_DATA_MAX+EXT_DATA) //outter(usart) max buffer len, depend at+tcpsend=x,"" cmd, we make to send max 1K data bytes
- void sysTickRun(void);
- void ActiveTgMode(void);
- void AmrnbPre(char flag);
- void getMyClock(MY_CLOCK *myclock);
- void setMyClock(MY_CLOCK myclock);
- //主线程任务栈
- #define MAIN_PT_THREAD_STACK 1024*64
- #define POC_TCP_THREAD_STACK 1024*15
- #define POC_UDP_THREAD_STACK 1024*6
- #define AUTH_UDP_THREAD_STACK 1024*4
- #define GROUP_TCP_THREAD_STACK 1024*4
- #define TUP_API_THREAD_STACK 1024*4
- #define BUBIAO_TCP_THREAD_STACK 1024*4
- #define HTTP_THREAD_STACK 1024*10
- #define PING_THREAD_STACK 1024*4
- #define UART_THREAD_STACK 1024*4
- #define TONE_THREAD_STACK 1024*2
- #define HANDSET_THREAD_STACK 1024*2
- #define AGPS_THRAD_THREAD_STACK 1024*4
- //#define SKIP_PA_BY_CB //通过回调过滤pa音
- #endif
|