I am developing C2000 CLA as a software driver component which can be configured and integrated in different applications. Current CLA example projects define only one *.cla file. I'm wondering whether the following design works or not.
Define two *cla files. In one *.cla file define all 8 CLA tasks. In another *.cla file, define the specific CLA task callback functions per the applications.
Ex.
In ClaTask.cla
interrupt void ClaTask1(void)
{
ClaTask1CallbackFucntion();
}
In ClaTask_Stub.cla, define the callback function.
void ClaTask1CallbackFucntion(void)
{
.......................
}
If it works, file "ClaTask.cla" can be a generic CLA file and "ClaTask_Stub.cla" can be application specific file. The main purpose is to find a way to remap CLA callback functions in RAMLS at CLA init.
Any inputs would be appreciated.
Thanks for the supports.