MDK-ARM Keil, MDK-ARM Datasheet - Page 27

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Getting Started: Building Applications with RL-ARM
void os_tmr_call (U16 info)
}
This function knows which timer has expired by reading the info parameter. We
can then run the appropriate code after the “case” statement.
Exercise: Timer
This exercise modifies the two-task-program to use virtual timers to control the
rate at which the LEDs flash.
Idle Demon
The final timer service provided by RTX is not really a timer, but this is probably
the best place to discuss it. If, during our RTOS program, there is no task
running and no task ready to run (e.g. they are all waiting on delay functions),
then RTX uses the spare runtime to call an “Idle Demon” that is located in the
RTX_Config.c
which only runs when nothing else is ready.
__task void os_idle_demon (void)
}
You can add any code to this task, but it has to obey the same rules as user tasks.
Exercise: Idle Demon
This example demonstrates how to add code to the idle task, so that the
application can perform “book keeping” tasks in the spare cycles not consumed
by the main application.
switch (info)
}
for (;;)
}
case 0x01:
break ;
file. This idle code is in effect a low priority task within the RTOS,
{
{
{
// user code here
// user code here
{
27

Related parts for MDK-ARM