soft_timer.h 557 B

123456789101112131415161718192021222324252627
  1. #ifndef _SOFT_TIMER_H
  2. #define _SOFT_TIMER_H
  3. #include "tim.h"
  4. #include "stdbool.h"
  5. typedef struct
  6. {
  7. bool seed;
  8. bool weight;
  9. bool pump;
  10. bool nozzle;
  11. bool arm;
  12. bool flow;
  13. bool checklow;
  14. bool radar;
  15. bool bms;
  16. bool current;
  17. bool L_pump1;
  18. bool L_pump2;
  19. bool part_radar;
  20. }Dev_timer;
  21. extern Dev_timer devinfo_time;
  22. void timer_function(void);
  23. extern bool vol_flag,engine_flag,devtype_flag,can_debug_flag,dev_version_flag,mimo360_radar_flag,DM_radar_flag,pmu_heart_flag;
  24. uint32_t Get_Systimer_Us(void);
  25. #endif