main.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __MAIN_H_
  2. #define __MAIN_H_
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <stdlib.h>
  6. #include "pt.h"
  7. #include "pt-timer.h"
  8. #include "platform.h"
  9. #include "datatype.h"
  10. #include "common.h"
  11. extern T_BOOL appQuit;
  12. void hpocRun(void);
  13. #define TUP_SEND_DATA_MAX 1024
  14. #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
  15. void sysTickRun(void);
  16. void ActiveTgMode(void);
  17. void AmrnbPre(char flag);
  18. void getMyClock(MY_CLOCK *myclock);
  19. void setMyClock(MY_CLOCK myclock);
  20. //主线程任务栈
  21. #define MAIN_PT_THREAD_STACK 1024*64
  22. #define POC_TCP_THREAD_STACK 1024*15
  23. #define POC_UDP_THREAD_STACK 1024*6
  24. #define AUTH_UDP_THREAD_STACK 1024*4
  25. #define GROUP_TCP_THREAD_STACK 1024*4
  26. #define TUP_API_THREAD_STACK 1024*4
  27. #define BUBIAO_TCP_THREAD_STACK 1024*4
  28. #define HTTP_THREAD_STACK 1024*10
  29. #define PING_THREAD_STACK 1024*4
  30. #define UART_THREAD_STACK 1024*4
  31. #define TONE_THREAD_STACK 1024*2
  32. #define HANDSET_THREAD_STACK 1024*2
  33. #define AGPS_THRAD_THREAD_STACK 1024*4
  34. //#define SKIP_PA_BY_CB //通过回调过滤pa音
  35. #endif