21.01.2015 Views

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

INtime <strong>3.1</strong> <strong>Software</strong><br />

Exception handling<br />

High-level calls<br />

System call<br />

SetRtExceptionHandler<br />

GetRtExceptionHandlerInfo<br />

Description<br />

Assigns an exception handler and exception mode or changes<br />

the current mode for any of the following:<br />

• Current thread exception handler<br />

• Current process exception handler<br />

• System-wide exception handler<br />

The GetRtExceptionHandlerInfo function returns the address<br />

and exception-handling mode for any of the following:<br />

• Current thread’s exception handler<br />

• Current process’ exception handler<br />

• System-wide exception handler<br />

• System-wide hardware exception handler (trap handler)<br />

Interrupts<br />

This group provides the system calls required to manage interrupts. Interrupt requests<br />

are encoded to indicate their source; the resulting coding is called the interrupt level.<br />

This encoded interrupt level is required in a number of the system calls in this group.<br />

Macros are provided in the header files for the 15 standard PC interrupt levels,<br />

IRQ0_LEVEL to IRQ15_LEVEL.<br />

High-level calls<br />

System call<br />

SetRtInterruptHandler<br />

SetRtInterruptHandlerEx<br />

ResetRtInterruptHandler<br />

EnterRtInterrupt<br />

GetRtInterruptLevel<br />

SignalRtInterruptThread<br />

SignalEndOfRtInterrupt<br />

Description<br />

Assigns an interrupt handler to the specified interrupt level,<br />

and optionally makes the calling thread the interrupt thread for<br />

that level.<br />

Cancels the assignment of the current interrupt handler to the<br />

specified level and disables the level.<br />

Allows the interrupt handler to have access to static data<br />

belonging to the RT process which owns the handler. This<br />

function is called from an interrupt handler.<br />

Returns to the calling thread the highest (numerically lowest)<br />

level that an interrupt handler has started servicing but has not<br />

yet finished.<br />

Sends an EOI signal to the interrupt hardware then schedules<br />

the interrupt thread associated with the specified level. This<br />

function is called from an interrupt handler.<br />

Sends an EOI signal to the interrupt hardware. This function is<br />

called from an interrupt handler.<br />

116

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

Saved successfully!

Ooh no, something went wrong!