]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commit
Rework multi rate handling system
authorMichal Horn <hornmich@fel.cvut.cz>
Tue, 7 Apr 2015 11:03:05 +0000 (13:03 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Tue, 7 Apr 2015 11:03:05 +0000 (13:03 +0200)
commit93d6e025ff76de4c7e2b966d8a1d9d12ae94a42b
tree0202e9ff1dd444c4c454a6d5c4e4db594890981a
parentfcb3a6a6533d4dfd712c58d275e94a5cbf1aedc6
Rework multi rate handling system

In commits 6ca7b9c and bff19d9 have been developed a mechanism for
tasks timing, which is working properly when Auto or Multi threading (MT)
is selected. Unfortunatelly we have missed the option Single tasking (ST),
which should be checked instead of Auto or MT, because this mode is not yet
implemented.
When ST is selected in the model configuration, the timing becomes
completely wrong (besides a compilation warning reported in Issue #1150),
because the manually generated timers are colliding with the automatically
generated timers.

As a result, the code written in the mentioned commits has been moved from
rpp_srmain.tlc into rpp_mrmain.tlc, because some ideas will be used later
for implementing Multi tasking multirate system.

rpp_srmain.tlc content has been restored to the previous state, which was
working correctly with right model configuration.

Exit macro with error message has been added to the rpp_file_process.tlc
for wrong model configuration detection.

Configuration for all demos has been corrected.

Fixes: #1150
12 files changed:
rpp/demos/adc_demo.slx
rpp/demos/can_ext_mode_demo.slx
rpp/demos/can_simple_demo.slx
rpp/demos/cantransmit.slx
rpp/demos/demo_board.slx
rpp/demos/echo_char.slx
rpp/demos/gio_demo.slx
rpp/demos/hello_world.slx
rpp/demos/multirate_st.slx
rpp/rpp/rpp_file_process.tlc
rpp/rpp/rpp_mrmain.tlc [new file with mode: 0644]
rpp/rpp/rpp_srmain.tlc