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.

RTOS/AM5728: PDK drivers usage

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

why have no teach of how to use the PDK drv on a new sysbios project (user create)

i know have example,but it is not useful!!!!

because,i dont know how to add the drv to my new create sysbios project!!!!how should i config my *.cfg file and *.c file!!!! 

  • !!!DO NOT SEND ME THIS LINK !!!
    software-dl.ti.com/.../Overview.html
    !!!IT IS RUBBISH!!!
  • The RTOS team have been notified. They will respond here.
  • Hi,

    We have a template showing how several simple drivers are added into a test application. Please check processor_sdk_rtos_am57xx_5_00_00_15\demos\rtos_template_app from the latest Processor SDK RTOS 5.0 release. You can find there is main.cfg, each driver is added as:

    /* ================ Low level drivers configuration ================ */
    /* Load the Osal package */
    var osType = "tirtos";
    var Osal = xdc.loadPackage('ti.osal');
    Osal.Settings.osType = osType;

    /*use CSL package*/
    var Csl = xdc.loadPackage('ti.csl');
    Csl.Settings.deviceType = socType;

    /* Load the i2c package */
    var I2c = xdc.loadPackage('ti.drv.i2c');
    I2c.Settings.socType = socType;

    /* Load the uart package */
    var Uart = xdc.loadPackage('ti.drv.uart');
    Uart.Settings.socType = socType;

    .......

    Also, there is a main.c, you will see how a driver is initialized and task created.

    Regards, Eric