Intel 386 Manual do Utilizador Página 239

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 691
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 238
Intel386™ EX EMBEDDED MICROPROCESSOR USERS MANUAL
9-40
return E_OK;
}/* SetIRQVector */
/*****************************************************************************
SetInterruptVector:
Description:
Loads the interrupt vector table with the address of the interrupt
routine. The vector table entry number is determined by the vector
number.
Parameters:
InterProc Address of interrupt function, will be loaded into
the interrupt table.
ISR_Type Specifies if the interrupt function. Real Mode only
supports INTERRUPT_ISR (the parameter is ignored). The
parameter is kept to maintain compatibility with the
protected mode version of this function.
Returns:
None
Assumptions:
Compiler supports far and interrupt keywords
Compiler may issue a warning about IntrType not used.
IntrType is kept for protected mode compatibility.
Syntax:
SetInterruptVector(wdtISR, INTERRUPT_ISR);
Real/Protected Mode
Real Mode only
*****************************************************************************/
void SetInterruptVector( void (far interrupt *IntrProc)(void),
int Vector, int IntrType)
{
(void) IntrType; // Reference to avoid compiler warning
((unsigned long far *)(0))[Vector] = (unsigned long)IntrProc;
}/* SetInterruptVector */
/*****************************************************************************
Vista de página 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 690 691

Comentários a estes Manuais

Sem comentários