dev_task.h 522 B

12345678910111213141516171819202122232425262728
  1. #ifndef __DEV_TASK_H
  2. #define __DEV_TASK_H
  3. #include "stm32f4xx.h"
  4. #define TASK_MASK_QTY 8
  5. typedef union
  6. {
  7. struct
  8. {
  9. uint8_t task0_flag : 1;
  10. uint8_t task1_flag : 1;
  11. uint8_t task2_flag : 1;
  12. uint8_t task3_flag : 1;
  13. uint8_t task4_flag : 1;
  14. uint8_t task5_flag : 1;
  15. uint8_t task6_flag : 1;
  16. uint8_t task7_flag : 1;
  17. } bits;
  18. uint8_t all;
  19. } dev_task_flag_un;
  20. void dev_task_clock(void);
  21. extern dev_task_flag_un dev_task_flag;
  22. #endif // __DEV_TASK_H