443
edits
-
Changes
Created page with "<strong>SET_VECTOR</strong> ==SYNOPSIS== #include <intrpt.h> typedef interrupt void (*isr)(); isr set_vector(isr * vector, isr func); ==DESCRIPTION== This routine allow..."
<strong>SET_VECTOR</strong>
==SYNOPSIS==
#include <intrpt.h>
typedef interrupt void (*isr)();
isr set_vector(isr * vector, isr func);
==DESCRIPTION==
This routine allows an interrupt vector to be initialized. The first argument should be the address of the
interrupt vector (not the vector number but the actual
address) cast to a pointer to <strong>isr</strong>, which is a typedef'd
pointer to an interrupt function. The second argument
should be the function which you want the interrupt
vector to point to. This must be declared using the
<strong>interrupt</strong> type qualifier. The return value of
<strong>set_vector</strong>() is the previous contents of the vector.
==SEE ALSO==
di(), ei()
==SYNOPSIS==
#include <intrpt.h>
typedef interrupt void (*isr)();
isr set_vector(isr * vector, isr func);
==DESCRIPTION==
This routine allows an interrupt vector to be initialized. The first argument should be the address of the
interrupt vector (not the vector number but the actual
address) cast to a pointer to <strong>isr</strong>, which is a typedef'd
pointer to an interrupt function. The second argument
should be the function which you want the interrupt
vector to point to. This must be declared using the
<strong>interrupt</strong> type qualifier. The return value of
<strong>set_vector</strong>() is the previous contents of the vector.
==SEE ALSO==
di(), ei()