请问TI的工程师:
我现在有个问题,就是任务优先级和软件定时器的优先级那个高,如果我的软件定时器再跑,任务可以抢占软件定时器吗,还是软件定时器的优先级比任务高,可以抢占任务运行得到CPU使用权
Viki Shi:
SYS/BIOS provides support for several types of program threads with different priorities. Each thread type has different execution and preemption characteristics. The thread types (from highest to lowest priority) are:
• Hardware interrupts (Hwi), which includes Timer functions
• Software interrupts (Swi), which includes Clock functions
• Tasks (Task)
• Background thread (Idle)
Viki Shi:
任务的优先级还可以自己配置,调用Task_setPri()
具体可参考: file:///C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/docs/Bios_User_Guide.pdf
user4941551:
回复 Viki Shi:
Viki Shi你好:
请问一下,我们创建的软件定时器也是属于SWI中断吗?按照您上面说的应开始属于SWI,但是TI-RTOS不是像FreeRTOS那样软件定时器也是一个OS任务吗,如果是它的软件优先级是怎样的
Viki Shi:
回复 user4941551:
软件定时器中断属于SWI,可以参考下TI RTOS里的kernal文档以及TI RTOS 的概述