Msg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /********************************************************************************
  2. * File Name: Msg.h
  3. * Function Describe: Header file for Msg.c
  4. * Explain:
  5. * Writer: ShiLiangWen
  6. * Date: 2015-1-30
  7. *******************************************************************************/
  8. #ifndef __MSG_H
  9. #define __MSG_H
  10. /***********************************************************************************/
  11. #define TASK_WAIT 0x12
  12. #define TASK_DL_APP 0x34 //下载应用程序
  13. #define TASK_DL_FILES 0x56 //下载文件系统
  14. #define TASK_GOTO_APP 0X78 //运行应用程序
  15. typedef struct SUT_MSG
  16. {
  17. unsigned char Uart1Recv;
  18. unsigned char Uart2Recv;
  19. unsigned char Uart3Recv;
  20. unsigned char Tick10ms;
  21. unsigned char Tick500ms;
  22. unsigned char TaskStart;
  23. unsigned char KeyPress;
  24. }SUT_MSG;
  25. extern SUT_MSG sutMsg;
  26. extern unsigned char g_ucTask;
  27. extern unsigned char g_ucLastTask;
  28. extern int g_iPcTaCt;
  29. extern int g_iPcTaFlag;
  30. extern unsigned long g_ulTick500Ct;
  31. extern void TickMsg(void);
  32. extern void Tick500Msg(void);
  33. extern void StartMsg(void);
  34. extern void KeyMsg(void);
  35. extern void Uart1Msg(void);
  36. extern void NewTask(unsigned char Task);
  37. /***********************************************************************************/
  38. #endif
  39. /***********************************************************************************/