12.07.2015 Views

CooCox CoOS 用户手册

CooCox CoOS 用户手册

CooCox CoOS 用户手册

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CooCox</strong> <strong>CoOS</strong> 6.8.6 isr_PostMail()StatusType isr_PostMail(OS_EventID id,void* pmail) ID id ID pmailE_SEV_REQ_FULLE_INVALID_IDE_MBOX_FULLE_OK#include "CCRTOS.h"OS_EventID mailbox;int IsrDat;void XXX_IRQHandler(void){StatusType result; ID}EnterISR(); // Enter ISR...IsrDat = 0x90;/* Post a mail to Mailbox that created by other tase */result = isr_PostMail (mailbox, &IsrDat);if (result != E_OK) {if (result == E_SEV_REQ_FULL) {printf("Service requst queue is full !\n");}}...ExitISR(); // Exit ISR12 CoPostMail:91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!