Architecture of Generated C Code : Main Task: Partition and Flow Control for C : Module Execution Procedure

Module Execution Procedure
void light_EXEC_all()
{
schedule_timeouts();
EXEC_st_Chart_TMODES();
} /* light_EXEC_all */
 
 

This procedure activates a single execution cycle (step), once being called by lo_main in the main module. It activates the schedule_timeouts procedure to schedule potential timeouts, and most importantly, is activating the hierarchical traversal of the state EXEC procedures by activating the EXEC procedure of the top-level Statechart.