cocoOS  5.0.1
cocoos.h File Reference
#include <stdint.h>
#include "os_port.h"
#include "os_typedef.h"
#include "os_defines.h"
#include "os_event.h"
#include "os_sem.h"
#include "os_task.h"
#include "os_assert.h"
#include "os_msgqueue.h"
#include "os_applAPI.h"

Go to the source code of this file.

Macros

#define NO_TID   255
 
#define NO_EVENT   255
 
#define NO_QUEUE   255
 
#define NO_SEM   255
 
#define N_TOTAL_SEMAPHORES   ( N_SEMAPHORES + N_QUEUES )
 
#define N_TOTAL_EVENTS   ( N_EVENTS + N_QUEUES )
 
#define OS_BEGIN   uint16_t os_task_state = os_task_internal_state_get(running_tid); switch ( os_task_state ) { case 0:
 
#define OS_END
 
#define OS_SCHEDULE(ofs)
 
#define OS_WAIT_TICKS(x, y)
 

Functions

uint8_t os_running (void)
 

Variables

uint8_t running_tid
 
uint8_t last_running_task
 
uint8_t running
 

Detailed Description

cocoOS kernel header file

Macro Definition Documentation

#define OS_END
Value:
os_task_kill(running_tid);\
running_tid = NO_TID;\
return;}
#define OS_SCHEDULE (   ofs)
Value:
os_task_internal_state_set(running_tid, __LINE__+ofs);\
running_tid = NO_TID;\
return;\
case (__LINE__+ofs):
#define OS_WAIT_TICKS (   x,
 
)
Value:
do {\
os_task_wait_time_set( running_tid, y, x );\
OS_SCHEDULE(0);\
} while ( 0 )