Msg.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_PC_UPDATE 0x25
  13. #define TASK_MODEM_UPDATE 0x36
  14. #define TASK_GOTO_APP 0X58
  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 unsigned char g_ucLoginServer;
  29. extern void TickMsg(void);
  30. extern void Tick500Msg(void);
  31. extern void StartMsg(void);
  32. extern void KeyMsg(void);
  33. extern void Uart1Msg(void);
  34. extern void Uart3Msg(void);
  35. extern void NewTask(unsigned char Task);
  36. /***********************************************************************************/
  37. #endif
  38. /***********************************************************************************/