MegaWiFi 1.5
MegaWiFi API documentation
tsk.h
Go to the documentation of this file.
1/************************************************************************/
15#ifndef __TSK_H__
16#define __TSK_H__
17
18#include <stdint.h>
19#include <stdbool.h>
20
22#define FPS 60
23
25#define MS_TO_FRAMES(ms) (((ms)*FPS/500 + 1)/2)
26
28#define TSK_PEND_FOREVER -1
29
30/************************************************************************/
40void vint_cb_set(void (*vint_cb)(void));
41
42/************************************************************************/
48void tsk_user_set(void (*user_tsk)(void));
49
50/************************************************************************/
55void tsk_user_yield(void);
56
57/************************************************************************/
69bool tsk_super_pend(int16_t wait_tout);
70
71/************************************************************************/
78void tsk_super_post(bool force_ctx_sw);
79
80#endif /*__TSK_H__*/
81
void tsk_user_set(void(*user_tsk)(void))
void tsk_super_post(bool force_ctx_sw)
bool tsk_super_pend(int16_t wait_tout)
void tsk_user_yield(void)
void vint_cb_set(void(*vint_cb)(void))