Zilog EZ80F916 User Manual
Page 157

UM014423-0607
Using the ANSI C-Compiler
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
137
The following is the effective
_set_vector
function prototype. The first argument here
is an integer defining the interrupt, and the second argument is the name of the associated
interrupt handler. The function returns the previous handler that was present in the vector
location before writing the new vector. The prototype of the function is included in a CPU-
specific header file (such as
eZ80F91.h
) and has the following form:
void* _set_vector(int vectnum,void (*hndlr)(void));
An example of the use of
_set_vector
is as follows:
extern void* interrupt isr_timer0(void);
void main(void)
{
_set_vector(TIMER0_IVECT, isr_timer0);
}
The following values for vectnum are supported:
NOTE: The CPU-specific header files, such as <
eZ80F91.h
>, are located in the following
directory:
<ZDS Installation Directory>
\include\zilog
where <ZDS Installation Directory> is the directory in which ZiLOG Developer Studio
was installed. By default, this would be
C:\Program
Files\ZiLOG\ZDSII_eZ80Acclaim!_
<version>, where <version> might be
4.11.0
or
5.0.0
.
EMACRX_IVECT
EMACTX_IVECT
EMACSYS_IVECT
MACC_IVECT
DMA0_IVECT
DMA1_IVECT
PLL_IVECT
FLASH_IVECT
PRT0_IVECT
PRT1_IVECT
PRT2_IVECT
PRT3_IVECT
PRT4_IVECT
PRT5_IVECT
TIMER0_IVECT
TIMER1_IVECT
TIMER2_IVECT
TIMER3_IVECT
UZI0_IVECT
UZI1_IVECT
RTC_IVECT
UART0_IVECT
UART1_IVECT
I2C_IVECT
SPI_IVECT
PORTA0_IVECT
PORTA1_IVECT
PORTA2_IVECT
PORTA3_IVECT
PORTA4_IVECT
PORTA5_IVECT
PORTA6_IVECT
PORTA7_IVECT
PORTB0_IVECT
PORTB1_IVECT
PORTB2_IVECT
PORTB3_IVECT
PORTB4_IVECT
PORTB5_IVECT
PORTB6_IVECT
PORTB7_IVECT
PORTC0_IVECT
PORTC1_IVECT
PORTC2_IVECT
PORTC3_IVECT
PORTC4_IVECT
PORTC5_IVECT
PORTC6_IVECT
PORTC7_IVECT
PORTD0_IVECT
PORTD1_IVECT
PORTD2_IVECT
PORTD3_IVECT
PORTD4_IVECT
PORTD5_IVECT
PORTD6_IVECT
PORTD7_IVECT