Microchip® Advanced Software Framework

Header file for the preemptive multitasking library for Contiki.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "contiki.h"
#include "mtarch.h"

Data Structures

struct  mt_thread
 

Macros

#define MT_OK
 No error. More...
 

Functions

void mt_exec (struct mt_thread *thread)
 Execute parts of a thread. More...
 
void mt_exit (void)
 Exit a thread. More...
 
void mt_init (void)
 Initializes the multithreading library. More...
 
void mt_remove (void)
 Uninstalls library and cleans up. More...
 
void mt_start (struct mt_thread *thread, void(*function)(void *), void *data)
 Starts a multithreading thread. More...
 
void mt_stop (struct mt_thread *thread)
 Stop a thread. More...
 
void mt_yield (void)
 Voluntarily give up the processor. More...
 
void mtarch_exec (struct mtarch_thread *thread)
 Start executing a thread. More...
 
void mtarch_init (void)
 Initialize the architecture specific support functions for the multi-thread library. More...
 
void mtarch_pstart (void)
 
void mtarch_pstop (void)
 
void mtarch_remove (void)
 Uninstall library and clean up. More...
 
void mtarch_start (struct mtarch_thread *thread, void(*function)(void *data), void *data)
 Setup the stack frame for a thread that is being started. More...
 
void mtarch_stop (struct mtarch_thread *thread)
 Clean up the stack of a thread. More...
 
void mtarch_yield (void)
 Yield the processor. More...