Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
System Interrupts

Currently the Netcruzer system uses co-operative task scheduling. It is not a real multitasking system, and uses state machines in tasks.

In the future, it might be extended to a real multi taking system. Interrupt level 1 is reserved for the "Kernel Scheduler", and interrupt level 2 for the "Kernel Timer".

Each interrupt can be assigned an interrupt level from 1 to 7 (0 is disabled). In addition, interrupts have a natural interrupt level. If two interrupts assigned the same interrupt level are active, the one with the highest natural level will be processed. For example, the natural interrupt level of the Timer 1 interrupt is 3, which is very high. Only the Capture/Compare Module 1 has an higher natural priority. The interrupt levels used are (7 has highest priority):

Level 7:

Level 6:

Level 5:

Level 4:

Level 3:

Level 2:

Level 1:

Level 0:

Where (NP=n) gives natural priority. See description above for details.