1 //***************************************************************************** 2 // 3 // sysexc.h - Prototypes for the System Exception Module routines. 4 // 5 // Copyright (c) 2011 Texas Instruments Incorporated. All rights reserved. 6 // Software License Agreement 7 // 8 // Texas Instruments (TI) is supplying this software for use solely and 9 // exclusively on TI's microcontroller products. The software is owned by 10 // TI and/or its suppliers, and is protected under applicable copyright 11 // laws. You may not combine this software with "viral" open-source 12 // software in order to form a larger program. 13 // 14 // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. 15 // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT 16 // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 17 // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY 18 // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL 19 // DAMAGES, FOR ANY REASON WHATSOEVER. 20 // 21 // This is part of revision 8264 of the Stellaris Peripheral Driver Library. 22 // 23 //***************************************************************************** 24 25 #ifndef __SYSEXC_H__ 26 #define __SYSEXC_H__ 27 28 //***************************************************************************** 29 // 30 // If building with a C++ compiler, make all of the definitions in this header 31 // have a C binding. 32 // 33 //***************************************************************************** 34 #ifdef __cplusplus 35 extern "C" 36 { 37 #endif 38 39 //***************************************************************************** 40 // 41 // Values that can be passed to SysExcIntEnable, SysExcIntDisable, and 42 // SysExcIntClear as the ulIntFlags parameter, and returned from 43 // SysExcIntStatus. 44 // 45 //***************************************************************************** 46 #define SYSEXC_INT_FP_IXC 0x00000020 // FP Inexact exception interrupt 47 #define SYSEXC_INT_FP_OFC 0x00000010 // FP Overflow exception interrupt 48 #define SYSEXC_INT_FP_UFC 0x00000008 // FP Underflow exception interrupt 49 #define SYSEXC_INT_FP_IOC 0x00000004 // FP Invalid operation interrupt 50 #define SYSEXC_INT_FP_DZC 0x00000002 // FP Divide by zero exception int 51 #define SYSEXC_INT_FP_IDC 0x00000001 // FP Input denormal exception int 52 53 //***************************************************************************** 54 // 55 // Prototypes. 56 // 57 //***************************************************************************** 58 extern void SysExcIntRegister(void (*pfnHandler)(void)); 59 extern void SysExcIntUnregister(void); 60 extern void SysExcIntEnable(unsigned long ulIntFlags); 61 extern void SysExcIntDisable(unsigned long ulIntFlags); 62 extern unsigned long SysExcIntStatus(tBoolean bMasked); 63 extern void SysExcIntClear(unsigned long ulIntFlags); 64 65 //***************************************************************************** 66 // 67 // Mark the end of the C bindings section for C++ compilers. 68 // 69 //***************************************************************************** 70 #ifdef __cplusplus 71 } 72 #endif 73 74 #endif // __SYSEXC_H__ 75