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/AMIC110: Hwi preemption using SYSBIOS on AMIC110

Genius 5840 points
Part Number: AMIC110
Other Parts Discussed in Thread: SYSBIOS,

Tool/software: TI-RTOS

Hello,

I want to configure as below using SYSBIOS.

-> While one Hwi is running , another Hwi with higher priority than that can interrupt .

What kind of setting is necessary for AMIC110?

Regards,

U-SK

  • U-SK,

    TI RTOS SYSBIOS kernel uses preemptive scheduling already which means that as long as User indicates the priority of the RTOS thread correctly the scheduler will always execute the highest priority thread that is ready to run.

    So when you are creating the HWI, indicate the right priority and the kernel will do the rest. Zero is the highest priority. GEnerally priority can be set from the .cfg file when HWi is created statically or when HWi_create API is called from the application. If your application creates HWI statically and associates same priority, you can also dynamically switch required HWI to higher priority using the HWi_setPriority API indicated here:

    downloads.ti.com/.../Hwi.html

    Hope this helps.

    Regards,
    Rahul