Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
113 Kevin 1
#ifndef __interrupts_h
2
#define __interrupts_h
3
 
4
// Note: As the interrupt system is currently setup, at the end
5
//       of each high-priority interrupt, the system will check to
6
//       see if the processor may be put to sleep.  This is done
7
//       with the call sleep_high_interrupt_if_okay() which is defined
8
//       in msg_queues.h -- init_queues() MUST be called prior to
9
//       enabling interrupts if sleep_high_interrupt_if_okay() is called!
10
 
11
// Initialize the interrupts
12
void interrupt_init(void);
13
 
14
// enable the interrupts (high and low priority)
15
void interrupt_enable(void);
16
 
17
// Are we calling from a high-priority interrupt?
18
int interrupt_in_high_interrupt_routine(void);
19
 
20
// Is a low-priority interrupt active?
21
int interrupt_low_int_active(void);
22
 
23
// Are we calling from a low-priority interrupt?
24
int interrupt_in_low_interrupt_routine(void);
25
 
26
// Are we calling this from the "main" routine (i.e., not an interrrupt handler?)
27
int interrupt_in_main_routine(void);
28
 
29
#endif