1 #ifndef __CRASH_CATCHER_API_H__
2 #define  __CRASH_CATCHER_API_H__
3 
4 /* This structure is filled in by the Hard Fault exception handler (or unit test) and then passed in as a parameter to
5    CrashCatcher_Entry(). */
6 typedef struct
7 {
8     uint32_t msp;
9     uint32_t psp;
10     uint32_t exceptionPSR;
11     uint32_t r4;
12     uint32_t r5;
13     uint32_t r6;
14     uint32_t r7;
15     uint32_t r8;
16     uint32_t r9;
17     uint32_t r10;
18     uint32_t r11;
19     uint32_t exceptionLR;
20 } CrashCatcherExceptionRegisters;
21 
22 /* The main entry point into CrashCatcher.  Is called from the HardFault exception handler and unit tests. */
23 void CrashCatcher_Entry(const CrashCatcherExceptionRegisters* pExceptionRegisters);
24 
25 /* The main entry point When software Assert.*/
26 void AssertCatcher_Entry(void);
27 
28 #endif /* __CRASH_CATCHER_API_H__*/
29