AppTaskCan.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /****************************************************************************
  2. *
  3. * Copy right: 2021-, Copyrigths of RLWL Ltd.Zhen C
  4. * File name: AppTaskCan.h
  5. * Description: App Task Can H file
  6. * History: Rev3.0 2021-07-06
  7. *
  8. ****************************************************************************/
  9. #include "bsp.h"
  10. #include "bsp_custom.h"
  11. #include "osasys.h"
  12. #include "ostask.h"
  13. #include "queue.h"
  14. #include "ps_event_callback.h"
  15. #include "cmisim.h"
  16. #include "cmimm.h"
  17. #include "cmips.h"
  18. #include "sockets.h"
  19. #include "psifevent.h"
  20. #include "ps_lib_api.h"
  21. #include "lwip/netdb.h"
  22. #include "debug_log.h"
  23. #include "slpman_ec616.h"
  24. #include "plat_config.h"
  25. #include "ec_tcpip_api.h"
  26. #include "hal_module_adapter.h"
  27. #include "app.h"
  28. #include "AppSignal.h"
  29. #include "AppFunc.h"
  30. #include "AppConfig.h"
  31. #define PROC_CAN_RX_TASK_STACK_SIZE (1024)
  32. typedef enum
  33. {
  34. PROCESS_CAN_STATE_INIT = 0,
  35. PROCESS_CAN_STATE_IDLE,
  36. PROCESS_CAN_STATE_WORK,
  37. PROCESS_CAN_STATE_SLEEP
  38. }process_CAN;
  39. void AppTaskCanInit(void* arg);
  40. static void Can_Receive(void);