]> rtime.felk.cvut.cz Git - arc.git/blobdiff - include/EcuM_Types.h
EcuM: More SchM,Gpt stuff
[arc.git] / include / EcuM_Types.h
index e1d5e2a75f05503b8c744c40c5b8929a5e137c6e..860044c2161f3963039bb6e6dcb03c3112bac42f 100644 (file)
 //#warning RTE_TYPE included before EcuM_Types.h\r
 #endif\r
 \r
-#ifdef ECUM_USE_SERVICE_COMPONENT\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
@@ -66,12 +67,14 @@ typedef enum {
 \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
@@ -102,8 +105,11 @@ enum {
        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
@@ -114,11 +120,12 @@ typedef enum
 \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
@@ -128,5 +135,44 @@ typedef enum
 #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