Opposite to earlier versions of Frameworks by Willert Software Tools,
the latest Frameworks are build inside your IDE and no longer inside
Rhapsody. As a result, you no longer can set properties in the Rhapsody
model to specify various RTOS details. Instead, you must use the
mechanisms offered by your RTOS manufactorer. Usually, this means
adapting a configuration file which you also can keep in your IDE
project.
For embOS, you must configure its kernel by defining the proper values
for its Clock frequency settings amongst others in RTOSINIT_xx.c. You
can find examples for use in the simulator or for boards in the embOS
installation on your PC. You likely need to:
add a RTOSINIT_xx.c to your IAR Embedded Workbench project and modify it to your needs
add a corresponding OS_Error.c to your EW project
add a linker configuration file (.icf) to your EW project. You
can save it into your project after you have specified stack and heap
size with the Linker Configuration File Editor
add a CSpy macro file (.mac) which is rather board specific
By no means this documentation can be regarded as the complete embOS
kernel documentation: please refer to the SEGGER documentation. We focus
on integration with Rhapsody generated C code and the RXF by Willert
Software Tools
The file WSTRTOS.h is used to specify details for the embOS which are
needed by the RTOS bridge interface. You can modify the constants:
RTOS_PRIORITY_LOW. This priority is used for the Bridge task, when in simulated-time model.
RTOS_PRIORITY_NORMAL. This priority is used for any task, created on behalf of your active class(es).
RTOS_PRIORITY_ABOVE_NORMAL. This priority is defined a little higher
than RTOS_PRIORITY_NORMAL and can be used for tasks that need to be
higher prioritized. It is not assigned to any tasks of the RXF or the
user model automatically.
RTOS_PRIORITY_HIGH. This priority is used for the Bridge task, when in real-time model.
RTOS_DEFAULT_STACK. This is the default stack size for any task, created on behalf of your active class(es).
RTOS_SMALL_STACK. This is the stack size in bytes for the bridge task.
RTOS_MQ_DEFAULT_SIZE . This is maximum number of queued events within your application.
RTOS_MAIN_STK_SIZE. This is the stack size for the Main task.
NOTE
If you modify a source file, you must rebuild your application, see GettingStarted example
Copyright (c) Willert
Software Tools GmbH. All rights reserved.