-osek-multitasking)Set up multitasking configuration from OIL file definition
This option is not available for code generated from MATLAB® code or Simulink® models.
Specify the OIL files that Polyspace® parses to set up the multitasking configuration of your OSEK project.
User interface: In the Configuration pane, the option is available on the Multitasking node. See Dependencies for other options you must also enable.
Command line: and options file Use the option
-osek-multitasking. See Command-Line Information.
If your project includes OIL files, Polyspace can parse these files to set up tasks, interrupts, cyclical tasks, and critical sections. You do not have to set them up manually.
Polyspace looks for and parses OIL files to set up your multitasking configuration.
autoLook for OIL files in your project source and include folders, but not in their subfolders.
customLook for OIL files on the specified path and the path subfolders. You can specify a path to the OIL files or to the folder containing the files.
When you select this option, in your source code, Polyspace supports these OSEK multitasking keywords:
TASK
DeclareTask
ActivateTask
DeclareResource
GetResource
ReleaseResource
ISR
DeclareEvent
DeclareAlarm
Polyspace parses the OIL files that you provide for TASK,
ISR, RESOURCE, and ALARM
definitions. The analysis uses these definitions and the supported multitasking keywords
to configure tasks, interrupts, cyclical tasks, and critical sections.
Example: Analyze Your OSEK Multitasking Project
To see how Polyspace models the TASK, ISR, and
RESOURCE definitions from your OIL files, open the
Concurrency window from the Dashboard
pane.
Polyspace does not set up a multitasking configuration for your OSEK project.
Make sure that you declare all tasks by using the
DeclareTask or TASK keywords
before you pass those tasks as parameters to functions or macros that expect
a task. For example , if you pass task foo to
ActivateTask without using
DeclareTask(foo); first, Polyspace considers task foo undefined which results
in a compilation error.
The analysis ignores TerminateTask() declarations in
your source code and considers that subsequent code is executed.
Polyspace ignores syntax elements of your OIL files that do not follow the syntax defined here.
To enable this option in the user interface of the desktop products, first select the
option External multitasking
configuration.
Parameter:
-osek-multitasking |
Value:
auto | custom=' |
| Default: Off |
Example (Bug Finder):
polyspace-bug-finder -sources |
Example (Code Prover):
polyspace-code-prover -sources |
Example (Bug Finder Server):
polyspace-bug-finder-server -sources |
Example (Code Prover
Server):
polyspace-code-prover-server -sources
|