fault_registers.h
Go to the documentation of this file.
1 /*
2  * SocialLedge.com - Copyright (C) 2013
3  *
4  * This file is part of free software framework for embedded processors.
5  * You can use it and/or distribute it as long as this copyright header
6  * remains unmodified. The code is free for personal use and requires
7  * permission to use in a commercial product.
8  *
9  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12  * I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14  *
15  * You can reach the author of this software at :
16  * p r e e t . w i k i @ g m a i l . c o m
17  */
18 
24 #ifndef FAULT_REGS_H__
25 #define FAULT_REGS_H__
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
31 
32 #include "LPC17xx.h"
33 #define FAULT_PRESENT_VAL 0xDEADBEEF
34 #define FAULT_LAST_RUNNING_TASK_NAME LPC_RTC->GPREG0
35 #define FAULT_EXISTS LPC_RTC->GPREG1
36 #define FAULT_PC LPC_RTC->GPREG2
37 #define FAULT_LR LPC_RTC->GPREG3
38 #define FAULT_PSR LPC_RTC->GPREG4
39 
40 
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 #endif
CMSIS Cortex-M3 Core Peripheral Access Layer Header File for NXP LPC17xx Device Series.