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.

Understanding pie_p28FP.c

Other Parts Discussed in Thread: SYSBIOS

Beside the fact that I have not deciphered how and where the prefixes are prepended to these function ie

 how the function in Hwi.c called Hwi_Instance_init gets renamed  ti_sysbios_family_c28_Hwi_Instance_init__F in pie_p28FP.c

OR

 how the function in Hwi.c called Hwi_Instance_init gets renamed   ti_sysbios_hal_Hwi_Instance_init__F in pie_p28FP.c

 C:\New_SysBios_CCSV5_Workspace\New_SyBios_CCSV5\Debug\configPkg\package\cfg\pie_p28FP.c (3 hits)
 Line 12067:     iStat = ti_sysbios_family_c28_Hwi_Instance_init__F(obj, args->intNum, args->hwiFxn, &prms, eb);
 Line 12385:     ti_sysbios_gates_GateHwi_Instance_init__F(obj, &prms);
 Line 12669:     iStat = ti_sysbios_hal_Hwi_Instance_init__F(obj, args->intNum, args->hwiFxn, &prms, eb);

Why are there two calls to the functions one in line 12067 and one in Line 12669 above . what is the difference in these to calls besides the name

 

my .cfg contains ONLY

var Hwi = xdc.useModule('ti.sysbios.family.c28.Hwi');

 

i WOULD EXPECT THE family specific call ti_sysbios_family_c28_Hwi_Instance_init

why the HAL call ti_sysbios_hal_Hwi_Instance_init__F? are both required

 

More importantly wher is the sout\rce code for these functions. The map shows its in sysbios library

  • Mark,

    There are short names like Hwi_xxx for the full qualified names like ti_sysbios_family_c28_Hwi_xxx.  This is based upon which header files are included.

    There can be both ti_sysbios_family_c28_Hwi_Instance_init__F and ti_sysbios_hal_Hwi_Instance_init__F because someone else internally is calling the hal Hwi.

    The source is ti/sysbios/family/c28/Hwi.c - It does not have the __F in the .c file.

    The source for the hal Hwi function would be ti/sysbios/hal/Hwi.c

    Judah