Energy Micro IEC60355 Library Example Project 1.0 (internal use only!) GCC-Version
Example project demonstrating POST and BIST library functions

iec60335_class_b_cpureg_test.h

Go to the documentation of this file.
00001 /***************************************************************************/
00030 #ifndef __IEC60335_CLASS_B_CPUREG_TEST_H__
00031 #define __IEC60335_CLASS_B_CPUREG_TEST_H__
00032 
00038 #include "iec60335_class_b_typedef.h"
00039 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif /* __cplusplus */
00044 
00049 #define TestClear             0x00000000            
00050 #define TestState_r0          0x00000010            
00051 #define TestState_r1r7        0x00000020            
00052 #define TestState_r8r12       0x00000040            
00053 #define TestStateMSP          0x00000100            
00054 #define TestStatePSP          0x00000200            
00055 #define TestStateLR           0x00000400            
00056 #define TestStateAPSR         0x00000800            
00057 #define TestStatePRIMASK      0x00001000            
00058 #define TestStateFAULTMASK    0x00002000            
00059 #define TestStateBASEPRI      0x00004000            
00065 extern void ASMCPUregTestPOST(void);
00066 
00075 extern void ASMCPUregTestLOW(void);
00076 
00083 extern void ASMCPUregTestHIGH(void);
00084 
00091 extern void ASMCPUregTestSP(void);
00092 
00099 extern void ASMCPUregTestSPEC(void);
00100 
00111 testResult_t IEC60335_ClassB_CPUregTest_BIST(void);
00112 
00122 testResult_t IEC60335_ClassB_CPUregTest_POST(void);
00123 
00124 #ifdef __cplusplus
00125 }
00126 #endif /* __cplusplus */
00127 
00132 #endif /* __IEC60335_CLASS_B_CPUREG_TEST_H__ */
00133 
00134 /************************************** EOF *********************************/