CooCox 1.1.4 on mbed with simple blinky example
mbox.c File Reference
Mailbox management implementation code of CooCox CoOS kernel. More...
Go to the source code of this file.
Functions | |
OS_EventID | CoCreateMbox (U8 sortType) |
Create a mailbox. | |
StatusType | CoDelMbox (OS_EventID id, U8 opt) |
Delete a mailbox. | |
void * | CoAcceptMail (OS_EventID id, StatusType *perr) |
Accept a mailbox. | |
void * | CoPendMail (OS_EventID id, U32 timeout, StatusType *perr) |
Wait for a mailbox. | |
StatusType | CoPostMail (OS_EventID id, void *pmail) |
Post a mailbox. | |
StatusType | isr_PostMail (OS_EventID id, void *pmail) |
Post a mailbox in ISR. |
Detailed Description
Mailbox management implementation code of CooCox CoOS kernel.
- Version:
- V1.1.4
- Date:
- 2011.04.20
INTERNAL FILE,DON'T PUBLIC.
© COPYRIGHT 2009 CooCox
Definition in file mbox.c.
Function Documentation
void* CoAcceptMail | ( | OS_EventID | id, |
StatusType * | perr | ||
) |
OS_EventID CoCreateMbox | ( | U8 | sortType ) |
StatusType CoDelMbox | ( | OS_EventID | id, |
U8 | opt | ||
) |
Delete a mailbox.
- Parameters:
-
[in] id Event ID. [in] opt Delete option. [out] None
- Return values:
-
E_INVALID_ID Invalid event ID. E_INVALID_PARAMETER Invalid parameter. E_TASK_WAITTING Tasks waitting for the event,delete fail. E_OK Event deleted successful.
- Description
This function is called to delete a mailbox.
- Note:
void* CoPendMail | ( | OS_EventID | id, |
U32 | timeout, | ||
StatusType * | perr | ||
) |
StatusType CoPostMail | ( | OS_EventID | id, |
void * | pmail | ||
) |
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2