em_rmu.h
Go to the documentation of this file.00001
00034 #ifndef __EM_RMU_H
00035 #define __EM_RMU_H
00036
00037 #include "em_device.h"
00038 #if defined(RMU_COUNT) && (RMU_COUNT > 0)
00039
00040 #include <stdbool.h>
00041
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045
00046
00051
00056
00057
00058
00059
00061 typedef enum
00062 {
00063 #if defined( RMU_CTRL_BURSTEN )
00064
00065 rmuResetBU = _RMU_CTRL_BURSTEN_SHIFT,
00066 #endif
00067
00068 rmuResetLockUp = _RMU_CTRL_LOCKUPRDIS_SHIFT
00069 } RMU_Reset_TypeDef;
00070
00071
00072
00073
00074
00076 #define RMU_LockupResetDisable(A) RMU_ResetControl(rmuResetLockUp, A)
00077
00078 void RMU_ResetControl(RMU_Reset_TypeDef reset, bool enable);
00079 void RMU_ResetCauseClear(void);
00080 uint32_t RMU_ResetCauseGet(void);
00081
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088
00089 #endif
00090 #endif