MDK-ARM Keil, MDK-ARM Datasheet - Page 75

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 init (void) __task
}
Since the TCP task has a greater memory requirement than most user tasks, it
must be defined with a custom stack space. The tcp_stack is defined as shown
below:
U64 tcp_stack [800/8];
The timer tick is controlled in its own task. This task is given a high priority and
is set to run at intervals of 100msec.
__task void timer_task (void)
}
The main tcp_task calls the RL-TCPnet library and then passes execution to any
other task that is in the READY state. Since this task has no RTX system calls
that will block its execution, it is always ready to run. By making it the lowest
priority task in your application, it will enter the RUN state whenever the CPU is
idle.
__task void tcp_task (void)
}
Exercise: PING With RTX
This exercise demonstrates the PING project built using RTX.
init_TcpNet ();
os_tsk_create (timer_task, 30);
os_tsk_create_user (tcp_task, 0, &tcp_stack, sizeof (tcp_stack));
os_tsk_delete_self ();
os_itv_set (10);
while (1)
}
while (1)
}
timer_tick ();
os_itv_wait ();
main_TcpNet ();
os_tsk_pass ();
{
{
{
{
{
75

Related parts for MDK-ARM