ModemTask.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /********************************************************************************
  2. * File Name: ModemTask.h
  3. * Function Describe: Header file for ModemTask.c
  4. * Explain:
  5. * Writer: ShiLiangWen
  6. * Date: 2015-8-2
  7. *******************************************************************************/
  8. #ifndef __MODEM_TASK_H
  9. #define __MODEM_TASK_H
  10. //-------------------------------------------------------------------------------
  11. #include <rtl.h>
  12. #define MODEM_TASK_STK_SIZE 1024/8
  13. #define MODEM_UART_TASK_STK_SIZE 1024/8
  14. typedef enum
  15. {
  16. CHINA_TELECOM,//µçÐÅ
  17. CHINA_MOBILE,//Òƶ¯
  18. CHINA_UNICOM,//ÁªÍ¨
  19. FOREIGN_ALL, //¹úÍâ
  20. CHINA_NONE//ÎÞ
  21. }YUNYINGSHANG_DEF;
  22. typedef struct{
  23. unsigned char feedBackStart:1;
  24. unsigned short feedID;
  25. unsigned short feedliushuiID;
  26. unsigned char result;
  27. }__attribute__ ((packed)) FEEDBACK_DEF;
  28. extern FEEDBACK_DEF sutFeed;
  29. extern YUNYINGSHANG_DEF thisYunYingShang;
  30. extern OS_TID idModemTask;
  31. extern U64 stkModemTask[MODEM_TASK_STK_SIZE];
  32. extern OS_TID idModemUartTask;
  33. extern U64 stkModemUartTask[MODEM_UART_TASK_STK_SIZE];
  34. extern OS_SEM ModemUartSem;
  35. extern unsigned char g_ucModemTaskEn;
  36. extern unsigned char g_uGtTaskEn;
  37. extern unsigned char g_uGtFactory;
  38. extern unsigned char g_ucQuitModemInitNow;
  39. __task void ModemUartTask(void);
  40. __task void ModemTask(void);
  41. void Modem_Stopinit();
  42. void GtFactory_XIEHAO(char type);
  43. void Vbatsend();
  44. //-------------------------------------------------------------------------------
  45. #endif