SGDK
A free and open development kit for the Sega Mega Drive
Loading...
Searching...
No Matches
task.h
Go to the documentation of this file.
1
21
22#ifndef __TASK_H__
23#define __TASK_H__
24
25#include "task_cst.h"
26
27
31void TSK_init();
32
39void TSK_userSet(VoidCallback *task);
40
45void TSK_stop(void);
46
52void TSK_userYield(void);
53
66bool TSK_superPend(s16 wait);
67
75void TSK_superPost(bool immediate);
76
77#endif /*__TASK_H__*/
void TSK_init()
Initialize the task sub system (reset internal variables).
void TSK_userYield(void)
Yield from supervisor task to user task. The user task will resume and will use all the available CPU...
void TSK_userSet(VoidCallback *task)
Configure the user task callback function. Must be set with a not NULL callback before calling any T...
void TSK_stop(void)
Stop the user task. This has the same effect than using TSK_setUser(NULL).
bool TSK_superPend(s16 wait)
Block supervisor task and resume user task. Supervisor task will not resume execution until TSK_super...
void TSK_superPost(bool immediate)
Resume a blocked supervisor task. Must be called from user task.
User task constantes definition.
short s16
Definition types.h:84