MDK-ARM Keil, MDK-ARM Datasheet - Page 39
![KIT REALVIEW MCU DEVELOPMENT](/photos/9/32/93274/mdk-arm_sml.jpg)
MDK-ARM
Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Specifications of MDK-ARM
For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 39 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
39
Mutex Caveats
Clearly, you must take care to return the Mutex token when you are finished with
the chip resource, or you will have effectively prevented any other task from
accessing it. You must also be careful about using the os_task_delete() call on
functions that control a Mutex token. RTX is designed to be a small footprint
RTOS. Consequently, there is no task deletion safety. This means that if you
delete a task that is controlling a Mutex token, you will destroy the Mutex token
and prevent any further access to the guarded peripheral.
Mailbox
So far, all of the inter-task communication methods have only been used to
trigger execution of tasks: they do not support the exchange of program data
between tasks. Clearly, in a real program we will need to move data between
tasks. This could be done by reading and writing to globally declared variables.
In anything but a very simple program, trying to guarantee data integrity would
be extremely difficult and prone to unforeseen errors. The exchange of data
between tasks needs a more formal asynchronous method of communication.
RTX contains a mailbox system that buffers messages into mail slots and
provides a FIFO queue between the sending and receiving tasks. The mailbox
object supports transfer of single variable data such as byte, integer and word-
width data, formatted fixed length messages, and variable length messages. We
will start by having a look at configuring and using fixed length messaging. For
this example, we are going to transfer a message consisting of a four-byte array
that contains nominally ADC results data and a single integer of I/O port data.
unsigned char ADresult [4];
unsigned int PORT0;
To transfer this data between tasks, we need to declare a suitable data mailbox.
A mailbox consists of a buffer formatted into a series of mail slots and an array
of pointers to each mail slot.
A mailbox object consists of a memory block formatted into message buffers and
a set of pointers to each buffer.
Related parts for MDK-ARM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MDK-ARM-B](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-B-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM-B
Manufacturer:
Keil Software
![MDK-ARM-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM
Manufacturer:
Keil Software
![MDK-ARM-BASIC](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-UF](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM UPG TO FLOATING LIC
Manufacturer:
Keil Tools
![MDK-ARM-F](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM W/ FLOATING LICENSE
Manufacturer:
Keil Software
![MDK-ARM3.1](/photos/26/86/268691/landingpagekeilrealviewarmkit_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM uVISION & C++ & RTX
Manufacturer:
Keil Tools
![MDK-ARM-SMB](/images/no-image3.png)
Part Number:
Description:
Development Software SUPP LICENSE RENEWAL 90+ DAYS NO TECH SUP
Manufacturer:
Keil Software
![KEIL-PK51-INTL](/images/manufacturer_photos/0/6/609/silicon_laboratories_inc_tmb.jpg)
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
![OM10045](/photos/9/21/92162/om10045_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
![TWR-K60N512-KEIL](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: