MegaWiFi 1.5
MegaWiFi API documentation
tsk.h File Reference

Tasking routines related functions. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define FPS   60
 Frames per second (60 on NTSC consoles, 50 on PAL machines) More...
 
#define MS_TO_FRAMES(ms)   (((ms)*FPS/500 + 1)/2)
 Converts milliseconds to frames, rounding to the nearest. More...
 
#define TSK_PEND_FOREVER   -1
 Timeout value to use for infinite waits. More...
 

Functions

void vint_cb_set (void(*vint_cb)(void))
 
void tsk_user_set (void(*user_tsk)(void))
 
void tsk_user_yield (void)
 
bool tsk_super_pend (int16_t wait_tout)
 
void tsk_super_post (bool force_ctx_sw)
 

Detailed Description

Tasking routines related functions.

Definition in file tsk.h.