Some glue functions to make porting ROBOTC coe easier. More...
Data Structures | |
struct | _rcTask |
Structure that correlates a function name with a thread. More... | |
Macros | |
#define | RC_TASKS 10 |
Maximum number of ROBOTC style tasks. More... | |
#define | TC_THREAD_STACK 584 |
Stack size for ROBOTC each thread also uses 176 bytes (0xB0) for thread overhead and 8 bytes for heap header. More... | |
Typedefs | |
typedef struct _rcTask | rcTask |
Structure that correlates a function name with a thread. More... | |
Functions | |
Thread * | StartTaskWithPriority (tfunc_t pf, tprio_t priority,...) |
Start a task with a given priority. More... | |
void | StopTask (tfunc_t pf) |
Stop a task. More... | |
void | CleanupTask (Thread *tp) |
cleanup a task if it was terminated elsewhere More... | |
Some glue functions to make porting ROBOTC coe easier.
#define RC_TASKS 10 |
Maximum number of ROBOTC style tasks.
#define TC_THREAD_STACK 584 |
Stack size for ROBOTC each thread also uses 176 bytes (0xB0) for thread overhead and 8 bytes for heap header.
Thread* StartTaskWithPriority | ( | tfunc_t | pf, |
tprio_t | priority, | ||
... | |||
) |
Start a task with a given priority.
[in] | pf | The thread function |
[in] | priority | The thread priority |
void StopTask | ( | tfunc_t | pf) |
Stop a task.
[in] | pf | The thread function |
void CleanupTask | ( | Thread * | tp) |
cleanup a task if it was terminated elsewhere
[in] | tp | A pointer to a thread |