EasyManuals Logo

Texas Instruments TMS320 User Manual

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #170 background imageLoading...
Page #170 background image
Mailboxes
4-66
Example 4-14. Posting a Message to a Mailbox
4.8.1 MBX Example
Example 4-15 provides sample code showing two types of tasks created
statically: a single reader task which removes messages from the mailbox,
and multiple writer tasks which insert messages into the mailbox. The
resultant trace from Example 4-15 is shown in Figure 4-15.
Note:
When called within an HWI, the code sequence calling MBX_post must be
either wrapped within an HWI_enter/HWI_exit pair or invoked by the HWI
dispatcher.
Bool MBX_post(mbx, msg, timeout)
MBX_Handle mbx;
Void *msg;
Uns timeout; /* return after this many */
/* system clock ticks */
Bool MBX_post(mbx, msg, timeout)
MBX_Handle mbx;
Void *msg;
Uns timeout; /* return after this many */
/* system clock ticks */

Table of Contents

Other manuals for Texas Instruments TMS320

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320 and is the answer not in the manual?

Texas Instruments TMS320 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320
CategoryComputer Hardware
LanguageEnglish

Related product manuals