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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Top of list<br />

Index page<br />

<strong>RTOS</strong> Semaphore Services<br />

Interrupt 0xAD service 0x15: RTX_DELETE_SEM, Delete a semaphore<br />

Parameters<br />

AH<br />

BX<br />

Removes specified semaphore from system.<br />

0x15 (= RTX_DELETE_SEM)<br />

ID of the semaphore acquired by RTX_CREATE_SEM<br />

Return Value<br />

Comments<br />

DX =0 success AX: 0<br />

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

You must be certain that no other task, Interrupt Service Routine or Timer procedure is in any way using<br />

or about to use this semaphore. Failure to observe this restriction can lead to unpredictable faults.<br />

Related Topics<br />

Top of list<br />

Index page<br />

<strong>RTOS</strong> Semaphore Services<br />

Interrupt 0xAD service 0x16: RTX_FREE_RES, Free a resource semaphore<br />

Parameters<br />

AH<br />

BX<br />

The resource semaphore's use count is set to zero which unconditionally frees the resource.<br />

0x16 (= RTX_FREE_RES)<br />

ID of the resource semaphore acquired from RTX_CREATE_SEM<br />

Return Value<br />

DX =0 success AX: 0<br />

Page 192 / 400

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

Saved successfully!

Ooh no, something went wrong!