I have successfully migrated my project to SYS/BIOS and have left all lagacy code intact, the way it was written for DSP?BIOS. In the original program, (which was not written by me, I am trying to modify it's purpose to suit my project on the same board) the initialiaztion routine was called from main,
which sent it to a different part of the code. In this code, the modules are initialized, then at the end of the routine, a semaphore is posted to finish the initialization.
inside the initialization semaphore, more modules are enabled (PWM, CAN, Watchdog) and a "wait state" flag is set which is picked up by a timed SWI and begins execution of the rest of the code.
My questions are:
Does the initialization of the PWM and CAN modules and etc. still need to be done at the task level in SYS/BIOS? or can I just place them with the rest of the initialization routine?
Does the legacy semaphore module still work before calling BIOS_start()?
With main set up in this fashion, should BIOS_start() still be called at the end of main, like so? or after the initialization of the legacy modules? Or somewhere else?