//#warning RTE_TYPE included before EcuM_Types.h\r
#endif\r
\r
-#if (ECUM_USE_SERVICE_PORTS == STD_ON)\r
+#ifdef CFG_ECUM_USE_SERVICE_COMPONENT\r
#include "Rte_Type.h"\r
#endif\r
\r
+\r
#if !defined(_DEFINED_TYPEDEF_FOR_EcuM_StateType_)\r
/** Possible states */\r
typedef enum {\r
\r
#endif\r
\r
+\r
#if !defined(_DEFINED_TYPEDEF_FOR_EcuM_UserType_)\r
typedef uint8 EcuM_UserType;\r
\r
#define _DEFINED_TYPEDEF_FOR_EcuM_UserType_\r
#endif\r
\r
+#if 0\r
enum {\r
/** Internal reset of µC (bit 2).\r
* The internal reset typically only resets the µC\r
ECUM_WKSOURCE_RESET = 0x02\r
};\r
\r
+\r
typedef uint32 EcuM_WakeupSourceType;\r
\r
+#endif\r
+\r
typedef enum\r
{\r
ECUM_WKSTATUS_NONE = 0, /**< No pending wakeup event was detected */\r
\r
typedef enum\r
{\r
- ECUM_WWKACT_RUN = 0, /**< Initialization into RUN state */\r
+ ECUM_WKACT_RUN = 0, /**< Initialization into RUN state */\r
ECUM_WKACT_TTII = 2, /**< Execute time triggered increased inoperation protocol and shutdown */\r
ECUM_WKACT_SHUTDOWN = 3 /**< Immediate shutdown */\r
} EcuM_WakeupReactionType;\r
\r
+\r
#if !defined(_DEFINED_TYPEDEF_FOR_EcuM_BootTargetType_)\r
typedef enum\r
{\r
#define _DEFINED_TYPEDEF_FOR_EcuM_BootTargetType_\r
#endif\r
\r
+\r
+#if defined(USE_WDGM)\r
+#include "WdgM.h"\r
+#endif\r
+\r
+#include "Mcu.h"\r
+\r
+#if defined(USE_WDGM)\r
+typedef struct EcuM_WdgM\r
+{\r
+ WdgM_SupervisedEntityIdType EcuMSupervisedEntity;\r
+ WdgM_ModeType EcuMWdgMWakeupMode;\r
+ WdgM_ModeType EcuMWdgMStartupMode;\r
+ WdgM_ModeType EcuMWdgMRunMode;\r
+ WdgM_ModeType EcuMWdgMPostRunMode;\r
+ WdgM_ModeType EcuMWdgMShutdownMode;\r
+} EcuM_WdgMType;\r
+#endif\r
+\r
+typedef struct EcuM_WakeupSourceConfig {\r
+ EcuM_WakeupSourceType EcuMWakeupSourceId;\r
+ uint32 EcuMValidationTimeout;\r
+ Mcu_ResetType EcuMResetReason;\r
+ boolean EcuMWakeupSourcePolling;\r
+ uint8 EcuMComMChannel;\r
+} EcuM_WakeupSourceConfigType;\r
+\r
+typedef struct EcuM_SleepMode\r
+{\r
+ uint8 EcuMSleepModeId;\r
+ EcuM_WakeupSourceType EcuMWakeupSourceMask;\r
+ Mcu_ModeType EcuMSleepModeMcuMode;\r
+#if defined(USE_WDGM)\r
+ WdgM_ModeType EcuMSleepModeWdgMMode;\r
+#endif\r
+ } EcuM_SleepModeType;\r
+\r
+\r
+\r
#endif /* ECUM_TYPES_H_ */\r
/** @} */\r