#include "Rte_Type.h"\r
#endif\r
\r
+\r
#if !defined(_DEFINED_TYPEDEF_FOR_EcuM_StateType_)\r
/** Possible states */\r
typedef enum {\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
+ ECUM_BOOT_TARGET_APP = 0, /**< The Ecu will boot into the application */\r
+ ECUM_BOOT_TARGET_BOOTLOADER = 1 /**< The Ecu will boot into the bootloader */\r
+} EcuM_BootTargetType;\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
- EcuM_WakeupSourceType EcuMSleepModeWdgMMode;\r
+#if defined(USE_WDGM)\r
+ WdgM_ModeType EcuMSleepModeWdgMMode;\r
+#endif\r
} EcuM_SleepModeType;\r
\r
-#if !defined(_DEFINED_TYPEDEF_FOR_EcuM_BootTargetType_)\r
-typedef enum\r
-{\r
- ECUM_BOOT_TARGET_APP = 0, /**< The Ecu will boot into the application */\r
- ECUM_BOOT_TARGET_BOOTLOADER = 1 /**< The Ecu will boot into the bootloader */\r
-} EcuM_BootTargetType;\r
-#define _DEFINED_TYPEDEF_FOR_EcuM_BootTargetType_\r
-#endif\r
+\r
\r
#endif /* ECUM_TYPES_H_ */\r
/** @} */\r