Search Code
About CoOS

Published 03 Dec 2010.

Last change message: Some basic LED-Flashing works in the CoOS-RTOS using Tasks

Import this program

CoOS

Published 03 Dec 2010, by   user Eric Ebert   tag CoOS, rtos
Embed: (wiki syntax)

« Back to documentation index

OsEvent.h File Reference

OsEvent.h File Reference

Event management header file. More...

Go to the source code of this file.

Data Structures

struct  EventCtrBlk
 Event control block. More...

Defines

#define EVENT_TYPE_SEM   (U8)0x01
#define EVENT_TYPE_MBOX   (U8)0x02
#define EVENT_TYPE_QUEUE   (U8)0x03
#define EVENT_TYPE_INVALID   (U8)0x04

Functions

P_ECB CreatEvent (U8 eventType, U8 eventSortType, void *eventPtr)
StatusType DeleteEvent (P_ECB pecb, U8 opt)
void EventTaskToRdy (P_ECB pecb)
void CreateEventList (void)

Variables

ECB EventTbl [CFG_MAX_EVENT]

Detailed Description

Event management header file.

Version:
V1.1.3
Date:
2010.04.26

This file including some defines and declares related to event (semaphore,mailbox,queque) management.

INTERNAL FILE,DON'T PUBLIC.

© COPYRIGHT 2009 CooCox

Definition in file OsEvent.h.


Define Documentation

#define EVENT_TYPE_INVALID   (U8)0x04

Invalid event type.

Definition at line 25 of file OsEvent.h.

#define EVENT_TYPE_MBOX   (U8)0x02

Event type:Mailbox.

Definition at line 23 of file OsEvent.h.

#define EVENT_TYPE_QUEUE   (U8)0x03

Event type:Queue.

Definition at line 24 of file OsEvent.h.

#define EVENT_TYPE_SEM   (U8)0x01

Event type:Semaphore.

Definition at line 22 of file OsEvent.h.


Function Documentation

void CreateEventList ( void   )

Create a event list.

P_ECB CreatEvent ( U8  eventType,
U8  eventSortType,
void *  eventPtr 
)

< Create a event Remove a task from wait list

StatusType DeleteEvent ( P_ECB  pecb,
U8  opt 
)

Delete a event.

void EventTaskToRdy ( P_ECB  pecb )

Insert a task to ready list


Variable Documentation

ECB EventTbl[CFG_MAX_EVENT]

Table use to save TCB.