]> rtime.felk.cvut.cz Git - arc.git/blobdiff - include/Gpt.h
EcuM: Gpt and SchM Fixes.
[arc.git] / include / Gpt.h
index ab33f8674b418f9254bd472519ab8d27a711a02c..f0ce66db0b4d9fb2c7dfae2d0ea8cc48d3ac2fe1 100644 (file)
  * for more details.\r
  * -------------------------------- Arctic Core ------------------------------*/\r
 \r
+\r
+/*\r
+ * Include structure:\r
+ *\r
+ *\r
+ *                    Gpt.h\r
+ *                      ^\r
+ *                      |\r
+ *       `---------- Gpt_xxx.c ---> Memmap.h\r
+ *\r
+ *\r
+ */\r
+\r
 /** @addtogroup Gpt GPT Driver\r
  *  @{ */\r
 \r
 \r
 #include "Std_Types.h"\r
 \r
-/* "forward" declare types due to circular dependency chain */\r
-/** Channel id type */\r
-typedef uint8_t Gpt_ChannelType;\r
-\r
-#include "EcuM.h"\r
 \r
 /** @name Error Codes */\r
 //@{\r
@@ -75,6 +83,8 @@ typedef enum
   GPT_MODE_SLEEP\r
 } Gpt_ModeType;\r
 \r
+/** Channel id type */\r
+typedef uint8_t Gpt_ChannelType;\r
 \r
 #define GPT_VENDOR_ID             1\r
 #define GPT_MODULE_ID                   1\r
@@ -87,7 +97,14 @@ typedef enum
 #define GPT_AR_MINOR_VERSION     2\r
 #define GPT_AR_PATCH_VERSION     1\r
 \r
-#include "Gpt_Cfg.h"\r
+//#if (GPT_REPORT_WAKEUP_SOURCE==STD_ON)\r
+#include "EcuM_Cbk.h"          /* @req 4.0.3/GPT271 */\r
+//#endif\r
+\r
+/* Needs Gpt_ConfigType */\r
+#include "Gpt_Cfg.h"           /* @req 4.0.3/GPT259 */\r
+\r
+/* The config needs EcuM_WakeupSourceType from EcuM */\r
 \r
 #if (GPT_VERSION_INFO_API == STD_ON)\r
 #define Gpt_GetVersionInfo(_vi) STD_GET_VERSION_INFO(_vi,GPT)\r