This commit is contained in:
lmx
2025-10-29 13:10:02 +08:00
commit 49a07fa419
2284 changed files with 642060 additions and 0 deletions

42
include_lib/system/task.h Normal file
View File

@ -0,0 +1,42 @@
#ifndef TASK_PRIORITY_H
#define TASK_PRIORITY_H
#include "os/os_api.h"
struct task_info {
const char *name;
u8 prio;
u8 core;
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