Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* This is the thread function of the base rate loop.
* Fundamental sample time = %<fundamentalStepSize>s
*/
* This is the thread function of the base rate loop.
* Fundamental sample time = %<fundamentalStepSize>s
*/
+ void * base_rate(void *param_unused)
{
%assign sec = FEVAL("uint32", fundamentalStepSize)
%assign nsec = FEVAL("uint32", (fundamentalStepSize - FEVAL("floor", fundamentalStepSize))*1000000000)
{
%assign sec = FEVAL("uint32", fundamentalStepSize)
%assign nsec = FEVAL("uint32", (fundamentalStepSize - FEVAL("floor", fundamentalStepSize))*1000000000)
int step_sem_value;
int_T i;
int step_sem_value;
int_T i;
%if extMode == 1
%<SLibGenERTExtModeInit()>
CHECKE(sem_post(&ext_mode_ready));
%if extMode == 1
%<SLibGenERTExtModeInit()>
CHECKE(sem_post(&ext_mode_ready));
sem_post(&sub_rate[i].sem);
sem_post(&sub_rate[i].sem);
}
sem_post(&sub_rate[i].sem);
sem_post(&sub_rate[i].sem);
}