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.

Return Value<br />

Comments<br />

DX =0 success AX: 0, task is running, location [BX:SI] contains the 16 bit taskID<br />

DX!=0 failure AX: contains error code<br />

The caller must fill in portions of the TaskDefBlock structure prior to making this call.<br />

The new task is immediately placed in the system's task ready queue. Execution begins if the task is<br />

higher priority than any other task currently ready (including task which called RTX_TASK_CREATE). The<br />

alternate API RTX_TASK_CREATE_WITHOUT_RUN can be used if it is not desired that the task be free<br />

to run immediately on creation.<br />

Related Topics<br />

Top of list<br />

Index page<br />

<strong>IPC<strong>@CHIP</strong></strong> System Tasks<br />

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

Interrupt 0xAD service 0x11: RTX_TASK_CREATE_WITHOUT_RUN, Create a task<br />

Parameters<br />

AH<br />

BX:SI<br />

ES:DI<br />

0x11 (= RTX_TASK_CREATE_WITHOUT_RUN)<br />

Pointer to 16 bit storage for the taskID, allocated by the caller<br />

Pointer to a TaskDefBlock type data structure<br />

Return Value<br />

Comments<br />

DX =0 success AX: 0, task is running, location [BX:SI] contains the 16 bit taskID<br />

DX!=0 failure AX: contains error code<br />

The caller must fill in portions of the TaskDefBlock structure prior to making this call.<br />

Unlike the alternative RTX_TASK_CREATE API, this API call does not start the new task. The new task<br />

can be started with a RTX_RESTART_TASK call.<br />

Related Topics<br />

<strong>IPC<strong>@CHIP</strong></strong> System Tasks<br />

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

Page 186 / 400

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

Saved successfully!

Ooh no, something went wrong!