Zilog ZUSBOPTS Bedienungsanleitung Seite 213

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 520
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 212
UM017105-0511 Run-Time Library
Zilog Developer Studio II – ZNEO™
User Manual
185
Synopsis
#include <zneo.h>
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 <zneo.h>
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 RI
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
Seitenansicht 212
1 2 ... 208 209 210 211 212 213 214 215 216 217 218 ... 519 520

Kommentare zu diesen Handbüchern

Keine Kommentare