Hi,
I am trying to add a function in my code instead of adding it via the PRD function manager. Here is what I want if I were to add this function via the tcf file.
Currently in TCF file:
bios.PRD.create("PRD_TestPrdFn");
bios.PRD.instance("PRD_TestPrdFn").order = 1;
bios.PRD.instance("PRD_TestPrdFn").comment = "TestPrdFn Simulator";
bios.PRD.instance("PRD_TestPrdFn").fxn = prog.extern("PRD_ActualFn")
bios.PRD.instance("PRD_TestPrdFn").period = 1;
bios.PRD.instance("PRD_TestPrdFn").mode = "continuous";
void PRD_ActualFn()
{
// come here every 1ms
}
How would I get the same functionality if I want to add the above function via the code in a .c file and where should I put the code? Like in main()??
Thanks,