Opposite to earlier versions of Frameworks by Willert Software Tools,
the latest Frameworks are build inside an external build environment
like Eclipse or your own make file(s) 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 supplier.
The RXF used in Linux requires you to use proper include paths to the RXF; please refer to the property WSTLinuxPathToRXF which contents is used in include options in a generated Makefile for your application.
For Linux, you'll need to
verify and/or modify the RTOS Bridge sources WSTRTOS.h and WSTRTOS.c -
it is unlikely that you'll need to reconfigure your Linux kernel itself.
The file WSTRTOS.h is used to specify details for the Linux Bridge
which are
needed by the RTOS
bridge interface. You can modify the constants:
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_PRIORITY_LOW. This priority is used for the
Bridge task, when in simulated-time model.
RTOS_DEFAULT_STACK. This is the default stack size for any
task, created on behalf of your active class(es).
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.
RIC_RAW_MEMORY_ALIGNMENT. This constant is used in RXF macros
which deal with memory allocation for classes etc. and its value
depends on your target. The default value is 16.
The file WSTRTOS.c is used to specify details for the Linux Bridge but
we do not expect you to change its implementation. The only topic worth
mentioning is that the constant OM_POSIX_THREAD_SUSPEND_RESUME_SUPPORT is used to add two signal catchers; one for SIGUSR1 and one for SIGUSR2.
NOTES
if you modify the source file WSTRTOS.c, you must
rebuild your application, see GettingStarted example
if you modify the include file WSTRTOS.h, you must rebuild your RXF libraries and rebuild your appliaction.
Copyright (c) Willert
Software Tools GmbH. All rights reserved.