task.h 887 B

123456789101112131415161718192021222324
  1. #ifndef _TASK_H_
  2. #define _TASK_H_
  3. /*
  4. ** The task interface is now part of the core platform interface.
  5. ** This header is preserved for backwards compatability only.
  6. */
  7. #include "platform.h"
  8. #define TASK_PRIORITY_LOW PLATFORM_TASK_PRIORITY_LOW
  9. #define TASK_PRIORITY_MEDIUM PLATFORM_TASK_PRIORITY_MEDIUM
  10. #define TASK_PRIORITY_HIGH PLATFORM_TASK_PRIORITY_HIGH
  11. #define task_post(priority,handle,param) platform_post(priority,handle,param)
  12. #define task_post_low(handle,param) platform_post_low(handle,param)
  13. #define task_post_medium(handle,param) platform_post_medium(handle,param)
  14. #define task_post_high(handle,param) platform_post_high(handle,param)
  15. #define task_handle_t platform_task_handle_t
  16. #define task_param_t platform_task_param_t
  17. #define task_callback_t platform_task_callback_t
  18. #define task_get_id platform_task_get_id
  19. #endif