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.

如何避免子程序被任务调用终止

Other Parts Discussed in Thread: SYSBIOS

你好,TI专家:

编写程序时遇到如下问题:

采用sys/biso 编译环境,


Semaphore_post(SEM_Timer2msForStateSwitch); 的设置周期为2Ms

响应此Semaphore_pend(SEM_Timer2msForStateSwitch, BIOS_WAIT_FOREVER); 后调用子程序

:EEPROM_Write_InWord(),此子程序的执行时间为10ms,其大于2ms,此时无法执行子程序EEPROM_Write_InWord()。

请问有什么办法保证执行这种耗时较长的子程序时不被打断。

另外,查询资料得知,在DSP/BIOS中,采用

bios.LCK.create("LCK_EEPROM_BUSY");保证子程序不被打断的。我们在SYS/BIOS环境中没有找到此工具。

SYS/BIOS环境中可有类似的工具保证程序不被打断?

谢谢