The module initialization procedure is called once the executable is started, before running through any execution cycle. It initializes all local data of the module. The procedure also establishes tasks that implement basic activities if there are such:
void light_init()
{
tp_acy_INPUT_TASK=
sched_create_task(user_code_for_input_task,
0,stop_acy_INPUT_TASK);
}The init procedure is one of the two procedures that the module exports, and it is called by the
lo_init
procedure.