01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The task name is not a null terminated string. It must contain four bytes (not necessarily ASCII).<br />

The task state returned in BX is a bit field coded same as taskState member of the Task_StateData<br />

data structure.<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function RTX_GET_TASK_STATE - Get state of a task<br />

Interrupt 0xAD service 0x20: RTX_DISABLE_TASK_SCHEDULING, Task Lock<br />

Task switching is inhibited until follow up call(s) to RTX_ENABLE_TASK_SCHEDULER is made.<br />

Interrupt service routines continue to execute, however Timer procedures will be delayed until task<br />

switching is re-enabled.<br />

Parameters<br />

AH<br />

Comments<br />

0x20 (= RTX_DISABLE_TASK_SCHEDULING)<br />

After making this call, the task must remain compute bound until it follows up with a call to<br />

RTX_ENABLE_TASK_SCHEDULER. The task must not call any API which waits or ends the task.<br />

Note that this is implemented as a spin lock, such that if for some reason the task calls here N times then<br />

N calls to RTX_ENABLE_TASK_SCHEDULER are required to unwind the spin lock and re-enable the<br />

task switching.<br />

Caution: This call must be followed by a call to RTX_ENABLE_TASK_SCHEDULER as soon as<br />

possible to re-enable the task switching. Should the task lock period be excessive, the system<br />

watchdog must be triggered by the user until the task switching is re-enabled.<br />

Related Topics<br />

Top of list<br />

Index page<br />

<strong>RTOS</strong> Task Control Services<br />

Interrupt 0xAD service 0x21: RTX_ENABLE_TASK_SCHEDULING, Release Task Lock<br />

Parameters<br />

AH<br />

Unwinds the task switching spin lock to re-enable task switching.<br />

0x21 (= RTX_ENABLE_TASK_SCHEDULING)<br />

Page 205 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!