USB-BDI
Defines | Functions | Variables
M:/USB-BDI/USB-BDI/Firmware/MPC555-USB-BDI/lib/isr.c File Reference

This file contains different interrupt service routines and the their initialization. More...

#include "isr.h"
#include "fx2regs.h"
#include "syncdelay.h"

Go to the source code of this file.

Defines

#define LJMP_OPCODE   0x02
 EZ-USB jump instruction.

Functions

void hook_sv (unsigned char vector_number, unsigned short addr)
 Hook standard interrupt vector.
void hook_uv (unsigned char vector_number, unsigned short addr)
 Hook usb interrupt vector.
void hook_fgv (unsigned char vector_number, unsigned short addr)
 Hook fifo/gpif interrupt vector.
void setup_autovectors (void)
 One time call to enable autovectoring for both USB and FIFO/GPIF.

Variables

__xdata unsigned char _standard_interrupt_vector []
__xdata unsigned char _usb_autovector []
__xdata unsigned char _fifo_gpif_autovector []

Detailed Description

This file contains different interrupt service routines and the their initialization.

Author:
Schlaepfer Stephan
Version:
1.0
Date:
18.1.2006

Definition in file isr.c.


Define Documentation

#define LJMP_OPCODE   0x02

EZ-USB jump instruction.

See CY7C68013A datasheet under 4.5USB-Interrupt Autovectors

Definition at line 38 of file isr.c.


Function Documentation

void hook_fgv ( unsigned char  vector_number,
unsigned short  addr 
)

Hook fifo/gpif interrupt vector.

vector_number is from the FGV_<foo> list. addr is the address of the interrupt service routine.

Parameters:
vector_numbervector_number is from the SV_<foo> list in the header file.
addris the address of the interrupt service routine.

Definition at line 103 of file isr.c.

void hook_sv ( unsigned char  vector_number,
unsigned short  addr 
)

Hook standard interrupt vector.

vector_number is from the SV_<foo> list. addr is the address of the interrupt service routine.

Parameters:
vector_numbervector_number is from the SV_<foo> list in the header file.
addris the address of the interrupt service routine.

Definition at line 49 of file isr.c.

void hook_uv ( unsigned char  vector_number,
unsigned short  addr 
)

Hook usb interrupt vector.

vector_number is from the UV_<foo> list. addr is the address of the interrupt service routine.

Parameters:
vector_numbervector_number is from the SV_<foo> list in the header file.
addris the address of the interrupt service routine.

Definition at line 76 of file isr.c.

void setup_autovectors ( void  )

One time call to enable autovectoring for both USB and FIFO/GPIF.

This disables all USB and FIFO/GPIF interrupts and clears any pending interrupts too. It leaves the master USB and FIFO/GPIF interrupts enabled.

Definition at line 129 of file isr.c.


Variable Documentation

__xdata unsigned char _fifo_gpif_autovector[]

fifo gpif autovector

__xdata unsigned char _standard_interrupt_vector[]

standard interrupt vector

__xdata unsigned char _usb_autovector[]

usb autovector

 All Files Functions Variables Defines