Subversion Repositories Code-Repo

Rev

Rev 155 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 155 Rev 157
Line 3... Line 3...
3
#include "interrupts.h"
3
#include "interrupts.h"
4
#include "uart.h"
4
#include "uart.h"
5
#include "i2c.h"
5
#include "i2c.h"
6
#include "timers.h"
6
#include "timers.h"
7
 
7
 
8
//----------------------------------------------------------------------------
-
 
9
// Note: This code for processing interrupts is configured to allow for high and
-
 
10
//       low priority interrupts.  The high priority interrupt can interrupt the
-
 
11
//       the processing of a low priority interrupt.  However, only one of each type
-
 
12
//       can be processed at the same time.  It is possible to enable nesting of low
-
 
13
//       priority interrupts, but this code is not setup for that and this nesting 
-
 
14
//       is not enabled.
-
 
15
 
-
 
16
void Interrupt_Init() {
8
void Interrupt_Init() {
17
    // Peripheral interrupts can have their priority set to high or low
9
    // Peripheral interrupts can have their priority set to high or low
18
    // Decide on the priority of the enabled peripheral interrupts (0 is low, 1 is high)
10
    // Decide on the priority of the enabled peripheral interrupts (0 is low, 1 is high)
19
 
11
 
20
    // High priority interrupts
12
    // High priority interrupts