1 //*****************************************************************************
3 // interrupt.h - Prototypes for the NVIC Interrupt Controller Driver.
5 // Copyright (c) 2005,2006 Luminary Micro, Inc. All rights reserved.
7 // Software License Agreement
9 // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
10 // exclusively on LMI's Stellaris Family of microcontroller products.
12 // The software is owned by LMI and/or its suppliers, and is protected under
13 // applicable copyright laws. All rights are reserved. Any use in violation
14 // of the foregoing restrictions may subject the user to criminal sanctions
15 // under applicable laws, as well as to civil liability for the breach of the
16 // terms and conditions of this license.
18 // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19 // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21 // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
22 // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
24 // This is part of revision 991 of the Stellaris Driver Library.
26 //*****************************************************************************
28 #ifndef __INTERRUPT_H__
29 #define __INTERRUPT_H__
36 //*****************************************************************************
38 // Prototypes for the APIs.
40 //*****************************************************************************
41 extern void IntMasterEnable(void);
42 extern void IntMasterDisable(void);
43 extern void IntRegister(unsigned long ulInterrupt, void (*pfnHandler)(void));
44 extern void IntUnregister(unsigned long ulInterrupt);
45 extern void IntPriorityGroupingSet(unsigned long ulBits);
46 extern unsigned long IntPriorityGroupingGet(void);
47 extern void IntPrioritySet(unsigned long ulInterrupt,
48 unsigned char ucPriority);
49 extern long IntPriorityGet(unsigned long ulInterrupt);
50 extern void IntEnable(unsigned long ulInterrupt);
51 extern void IntDisable(unsigned long ulInterrupt);
57 #endif // __INTERRUPT_H__