You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
673 B

11 months ago
11 months ago
11 months ago
11 months ago
  1. #pragma once
  2. #include "stm32f4xx_hal.h"
  3. #include "uart.h"
  4. #include "ticket.h"
  5. #include "zlog.h"
  6. #include "tjc_processer.h"
  7. #include "page_processer.h"
  8. #include "ztask.h"
  9. typedef struct {
  10. uint8_t data[TJC_MAX_PACKRT_SIZE];
  11. uint16_t datalen;
  12. } tjc_packet_t;
  13. typedef enum{
  14. error,
  15. sucess,
  16. } process_state;
  17. typedef void (*FunctionCB)(tjc_event_t*);
  18. extern uint8_t IsBelongPage;
  19. void Front_startSchedule(void);
  20. void Front_initialize(void);
  21. void regOnUsrEventCb(FunctionCB cb);
  22. void callUsrEventCb(tjc_event_t* event);
  23. void eventProcessTask_init(void);
  24. void eventProcessTask_start(taskfuction cb);
  25. void eventProcessTask(void);
  26. void task_init();