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.c. You
can find examples for use in the simulator or for hardware in the embOS documentation for NIOS II on your PC. You must:
add a RTOSInit.c to your NIOS II project and modify it to your needs
add a corresponding OS_Error.c to your NIOS II project
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.