![]() |
Home |
|
Function RTInstallISRThis function is obsolete. Please use RTInstallSharedIRQHandlerEx instead. This function installs a handler for a hardware interrupt: void RTInstallISR(int IRQ, RTIntHandler HighLevelHandler, RTIntHandler LowLevelHander); ParametersIRQShould be in the range 0 .. 31 and specifies the Interrupt Request on which the handler should be installed. HighLevelHandlerShould be a C function handler without interrupt stack frame. LowLevelHandlerShould contain a complete interrupt stack frame (save/restore all registers, return with IRETD). RTInstallISR behaves differently depending on the presence of RTKernel-32. Without RTKernel-32, RTInstallISR does: RTSetTrapVector(RTIRQ0Vector+IRQ, LowLevelHandler); With RTKernel-32, this function does: RTKSetIRQHandler(IRQ, HighLevelHandler);
|