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.

DRA821U: IRQ priority in SYSBIOS for R5F

Part Number: DRA821U
Other Parts Discussed in Thread: SYSBIOS

Dear TI expert.

May I ask how to set IRQ priority in SYSBIOS for R5F?

which API?

for priority, big number means high priority?

is there any method to check which priority set for one IRQ?

thanks a lot!

yong

  • Hi Yong,

    Do you us osal layer for setting up priority? if yes, then there is a priority member in the interrupt parameters. You could use it to set the priorities. 

    in TI RTOS, 0 is the highest priority interrupt, it goes upto 15, which is lowest priority interrupt. 

    Regards,

    Brijesh

  • Dear Brijesh.

    do you mean this API, HwiP_create()? 

    take PWM demo in MCUSW as example. the priority set to 1. 

    /opt/1Twork/repository/ti-processor-sdk-rtos-j7200-evm-07_03_00_07/mcusw/mcal_drv/mcal/examples/Pwm/PwmApp_Gpt/soc/j7200/mcu1_0/PwmApp_Startup.c
    intrPrms.corepacConfig.priority = 1U;
    osalRetVal = Osal_RegisterInterrupt(&intrPrms, &hwiHandle);


    /opt/1Twork/repository/ti-processor-sdk-rtos-j7200-evm-07_03_00_07/pdk_j7200_07_03_00_29/packages/ti/osal/src/tirtos/RegisterIntr_tirtos.c
    hwiInputParams.priority = interruptRegParams->corepacConfig.priority;
    hwiPHandle = HwiP_create(interruptRegParams->corepacConfig.intVecNum,interruptRegParams->corepacConfig.isrRoutine, &hwiInputParams);

    thanks a lot!

    yong

  • Hi Yong,

    Yes, you could use this parameter for setting priority in BIOS.

    Regards,

    Brijesh