Architecture of Generated C Code : Main Task: Partition and Flow Control for C : Schedule Timeouts Procedure

Schedule Timeouts Procedure

This procedure executes every execution-cycle, and evaluates what timeouts should be triggered in the particular module. All timeout triggers are evaluated, and the necessary timeouts are SCHEDULED using the timing module service sc_tmo.

static void schedule_timeouts()
{
if (enst_CHANGE3)
sc_tmo(&tmenst_CHANGE3, 0.3 * SEC);
} /* schedule_timeouts */