Main Page | Modules | Data Structures | File List | Data Fields | Globals

isr.h File Reference

Functions to support Interrupt Service Routines. More...

Go to the source code of this file.

Functions

void install_isr (int vecNum, void(*func)())
int set_int_level (int level)


Detailed Description

To use the functions defined in this file, include <68332/isr.h> and link libbase.a.

Function Documentation

void install_isr int  vecNum,
void(*  func)()
 

Installs an Interrupt Service Routine.

Parameters:
vecNum The interrupt vector number.
func A pointer to the function that handles the interrupt (the ISR). The ISR must be a parameterless function with no return value (void).

int set_int_level int  level  ) 
 

Sets the interrupt priority mask.

Parameters:
level Levels are 1-7. Only interrupts at a higher level than the mask are serviced. Level 7 cannot be unmaksed.


Generated on Wed Sep 6 03:02:22 2006 for MotoRobots by doxygen 1.3.6