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.

Comments<br />

This API reverses the affect of the RTX_DISABLE_TASK_SCHEDULER API.<br />

When task switching is re-enabled, an immediate task switch may result if there is an active task with<br />

higher priority than the task making this API call.<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function RTX_DISABLE_TASK_SCHEDULER<br />

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

Interrupt 0xAD service 0x30: RTX_INSTALL_TIMER, Install a timer procedure<br />

Parameters<br />

AH<br />

ES:DI<br />

Install a timer procedure that will be periodically executed by the kernel.<br />

0x30 (= RTX_INSTALL_TIMER)<br />

Pointer to a TimerProc_Structure type<br />

Return Value<br />

Comments<br />

DX =0 success AX: 0<br />

DX!=0 failure AX: contains error code, no free timer available<br />

See the TimerProc_Structure type description for instructions on how to call this function.<br />

A timer ID is output to the 16 bit location referenced by timerID member of your<br />

TimerProc_Structure.<br />

You must call the RTX_START_TIMER API function to get the kernel to start calling your new timer<br />

procedure.<br />

Important:<br />

Timer procedures are executed on the stack of the kernel task at a high priority, so they should be<br />

as short as possible. Avoid calling large functions like printf().<br />

Related Topics<br />

TimerProc_Structure definition<br />

<strong>RTOS</strong> Timer Procedures<br />

Page 206 / 400

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

Saved successfully!

Ooh no, something went wrong!