Zilog ZUSBOPTS User Manual
Page 213

UM017105-0511
Run-Time Library
Zilog Developer Studio II – ZNEO™
User Manual
185
Synopsis
#include
intrinsic void SET_VECTOR(int vectnum,void (*hndlr)(void));
where:
•
vectnum
is the interrupt vector number for which the interrupt handler
hndlr
is to be
set
•
hndlr
is the interrupt handler function pointer. The
hndlr
function must be declared
to be of the interrupt type with parameters and return as
void
(no parameters and no
return)
The compiler supports the following values for
vectnum
for the ZNEO CPU:
Returns
None
Example
#include
extern void interrupt isr_timer0(void);
void main(void)
{
SET_VECTOR(TIMER0, isr_timer0); /* setup TIMER0 vector */
}
TDI
TDI
(test and disable interrupts) is an intrinsic function that supports users creating their
own critical sections of code. It returns the previous interrupt status and disables inter-
rupts. It is intended to be paired with a later call to
RI()
, which will restore the previously
existing interrupt status. See the
section on page 183 for a discussion of that function.
ADC
C0
C1
C2
C3
I2C
P0AD
P1AD
P2AD
P3AD
P4AD
P5AD
P6AD
P7AD
PWM_FAULT
PWM_TIMER
RESET
SPI
SYSEXC
TIMER0
TIMER1
TIMER2
UART0_RX
UART0_TX
UART1_RX
UART1_TX