Created
December 31, 2022 18:03
-
-
Save petabyt/c27b2989b8542854a70c602a0947feb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int get_current_task_id(); | |
struct B { | |
int task_id; | |
char *task_name; | |
int priority; | |
int stack_size; | |
void (*entry)(); | |
void *params; // ? | |
}; | |
int pre_create_task(int task_id, int data[2]); | |
int create_task(struct *B tsk); | |
task_start_code(int task_id, void (*code)(), int *flag); | |
int new_task_timeout(int ms, int p2, void (*entry)(), int *flag) | |
// ran in a while loop, p3 should be -1 | |
int suspend_task(int task_id, short buffer[4], int p3); | |
struct A { | |
word flag; | |
byte current_task_id; | |
byte target_task_id; | |
int a; | |
int b; | |
}; | |
int set_task_flag(int task_id, struct A *a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment