Hi,
Why the function BIOS_start() is called at the end of main() ?
Normally it should be called at the begenning of main() to execute the startup sequence of Sys/Bios.
Best regards
Youssef
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Why the function BIOS_start() is called at the end of main() ?
Normally it should be called at the begenning of main() to execute the startup sequence of Sys/Bios.
Best regards
Youssef
Hi Youssef,
BIOS_start() when called schedules the tasks if any else will run the idle loop. All of the start-up sequence would be taken care by GEL file and cfg file(configuration file).
BIOS_start() once called will never return until BIOS_exit() is called.
Warm Regards,
Harsha
If this answered your question mark the question as answered by clicking yes at the right bottom.
Hi Harsha,
In the User's guide of Sys/Bios provided by TI page 49 it saids that "The SYS/BIOS startup sequence that run when BIOS_start() is called"
Best regards
Youssef
Youssef,
The first line of the paragraph you reference in the User's Guide states that the BIOS_start() function should be called "at the end of the application's main() function".
As Harsha points out, BIOS_start() DOES NOT RETURN.
This is because BIOS_start() starts up task threads which then take over the application's flow of execution.
In SYS/BIOS, the first part of main() is used by the application to perform its one-time-only application-specific initializations.
Once that is completed, BIOS_start() marks the beginning of the application's operational functioning.
Alan