zv_types.h 490 B

123456789101112131415161718192021222324252627
  1. #ifndef CX_ZIVUOS_TYPES_H_INCLUDED
  2. #define CX_ZIVUOS_TYPES_H_INCLUDED
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. typedef uint16_t zv_tid_t;
  6. typedef uint16_t zv_priority_t;
  7. typedef uint64_t zv_systime_t;
  8. #define ZV_TID_NULL ((zv_tid_t) -1)
  9. struct zv_task_s;
  10. struct zv_kernel_s;
  11. struct zv_event_s;
  12. enum zv_state_e;
  13. enum zv_event_type_e;
  14. typedef enum zv_state_e (*zv_worker_t) (
  15. struct zv_kernel_s *kernel,
  16. struct zv_event_s *received,
  17. zv_tid_t tid,
  18. void *param
  19. );
  20. #endif