KT24-1110_65E-HA-651B/include_lib/system/task.h

42 lines
415 B
C
Raw Normal View History

2024-11-10 10:44:17 +00:00
#ifndef TASK_PRIORITY_H
#define TASK_PRIORITY_H
#include "os/os_api.h"
struct task_info {
const char *name;
u8 prio;
u16 stack_size;
u16 qsize;
};
typedef OS_SEM sem_t;
typedef OS_MUTEX mutex_t;
int task_create(void (*task)(void *p), void *p, const char *name);
int task_exit(const char *name);
int task_delete(const char *name);
int task_kill(const char *name);
#endif