nodemcu-firmware/app/include/task/task.h

25 lines
874 B
C
Raw Normal View History

#ifndef _TASK_H_
#define _TASK_H_
/*
** The task interface is now part of the core platform interface.
2019-07-18 18:02:02 +02:00
** This header is preserved for backwards compatability only.
*/
2019-07-18 18:02:02 +02:00
#include "platform.h"
#define TASK_PRIORITY_LOW PLATFORM_TASK_PRIORITY_LOW
#define TASK_PRIORITY_MEDIUM PLATFORM_TASK_PRIORITY_MEDIUM
#define TASK_PRIORITY_HIGH PLATFORM_TASK_PRIORITY_HIGH
2019-07-18 18:02:02 +02:00
#define task_post(priority,handle,param) platform_post(priority,handle,param)
#define task_post_low(handle,param) platform_post_low(handle,param)
#define task_post_medium(handle,param) platform_post_medium(handle,param)
#define task_post_high(handle,param) platform_post_high(handle,param)
#define task_handle_t platform_task_handle_t
#define task_param_t platform_task_param_t
#define task_callback_t platform_task_callback_t
#define task_get_id platform_task_get_id
#endif