-

Changes

Jump to: navigation, search

Functions HI-TECH C SET VECTOR

732 bytes added, 23:36, 31 July 2017
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()

Navigation menu