Functions HI-TECH C SET VECTOR

Revision as of 23:36, 31 July 2017 by Kumokosi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SET_VECTOR

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 isr, 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 interrupt type qualifier. The return value of set_vector() is the previous contents of the vector.

SEE ALSO

di(), ei()