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.

IWR1443BOOST: Task_create() source code

Part Number: IWR1443BOOST
Other Parts Discussed in Thread: SYSBIOS

Hi,

Is Task_create() source code available?

I found define in Task.h

C:\ti\bios_6_50_01_12\packages\ti\sysbios\knl\Task.h

#define Task_create ti_sysbios_knl_Task_create

But ti_sysbios_knl_Task_create has no source.

Regards,
Gennadii

  • Hi Gennadii,

    The code for ti_sysbios_knl_task_create is available in configPkg\package\cfg\<project_name>_per4f.c which is generated as part of BIOS cfg compilation. This file is dynamically generated by the BIOS config compiler. For example, for the mmw demo CCS project, it is available in ..\workspace_v7\mmw\Debug\configPkg\package\cfg\mmw_per4f.c as given below:

    /* create */
    ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_create( ti_sysbios_knl_Task_FuncPtr fxn, const ti_sysbios_knl_Task_Params *__paramsPtr, xdc_runtime_Error_Block *__eb )
    {
    ti_sysbios_knl_Task_Params __prms;
    ti_sysbios_knl_Task_Object *__obj;

    int iStat;

    /* common instance initialization */
    __obj = xdc_runtime_Core_createObject__I(&ti_sysbios_knl_Task_Object__DESC__C, NULL, &__prms, (xdc_CPtr)__paramsPtr, 0, __eb);
    if (__obj == NULL) {
    return NULL;
    }

    /* module-specific initialization */
    iStat = ti_sysbios_knl_Task_Instance_init__E(__obj, fxn, &__prms, __eb);
    if (iStat) {
    xdc_runtime_Core_deleteObject__I(&ti_sysbios_knl_Task_Object__DESC__C, __obj, (xdc_Fxn)ti_sysbios_knl_Task_Instance_finalize__E, iStat, 0);
    return NULL;
    }

    return __obj;
    }

    Regards

    -Nitin