]> rtime.felk.cvut.cz Git - arc.git/commitdiff
SchM: Added more Schm files.
authormahi <devnull@localhost>
Sat, 8 Sep 2012 07:18:00 +0000 (09:18 +0200)
committermahi <devnull@localhost>
Sat, 8 Sep 2012 07:18:00 +0000 (09:18 +0200)
13 files changed:
system/SchM/SchM.c
system/SchM/SchM_Can.h
system/SchM/SchM_CanNm.h [new file with mode: 0644]
system/SchM/SchM_CanSM.h [new file with mode: 0644]
system/SchM/SchM_CanTp.h
system/SchM/SchM_Com.h [new file with mode: 0644]
system/SchM/SchM_ComM.h [new file with mode: 0644]
system/SchM/SchM_Dcm.h [new file with mode: 0644]
system/SchM/SchM_Dem.h [new file with mode: 0644]
system/SchM/SchM_Nm.h [new file with mode: 0644]
system/SchM/SchM_PduR.h [new file with mode: 0644]
system/SchM/SchM_Pwm.h [new file with mode: 0644]
system/SchM/SchM_cfg.h

index 1bae0464cd28f7b19850349aa0164e509dc6c887..655b8c74b9ef1860dd5d68980e54ea5db43e21ee 100644 (file)
 #if defined(USE_PDUR)\r
 #include "PduR.h"\r
 #include "SchM_PduR.h"\r
-#else\r
-#define SCHM_MAINFUNCTION_PDUR()\r
 #endif\r
 \r
 #if defined(USE_COM)\r
 #if defined(USE_PWM)\r
 #include "Pwm.h"\r
 #include "SchM_Pwm.h"\r
-#else\r
-#define SCHM_MAINFUNCTION_PWM()\r
 #endif\r
 \r
 \r
 #define SCHM_MAINFUNCTION_WDMG()\r
 #endif\r
 \r
+SCHM_DECLARE(CAN_WRITE);\r
+SCHM_DECLARE(CAN_READ);\r
+SCHM_DECLARE(CAN_BUSOFF);\r
+SCHM_DECLARE(CAN_WAKEUP);\r
+SCHM_DECLARE(CAN_ERROR);\r
+SCHM_DECLARE(COMRX);\r
+SCHM_DECLARE(COMTX);\r
+SCHM_DECLARE(CANTP);\r
+SCHM_DECLARE(CANNM);\r
+SCHM_DECLARE(DCM);\r
+SCHM_DECLARE(DEM);\r
+SCHM_DECLARE(COMM);\r
+SCHM_DECLARE(NM);\r
+SCHM_DECLARE(CANSM);\r
 SCHM_DECLARE(ECUM);\r
 SCHM_DECLARE(NVM);\r
 SCHM_DECLARE(FEE);\r
@@ -384,7 +394,6 @@ TASK(SchM_BswService) {
                SCHM_MAINFUNCTION_CAN_ERROR();\r
                SCHM_MAINFUNCTION_CAN_WAKEUP();\r
 \r
-               SCHM_MAINFUNCTION_PDUR();\r
 \r
                SCHM_MAINFUNCTION_COMRX();\r
                SCHM_MAINFUNCTION_COMTX();\r
@@ -393,7 +402,7 @@ TASK(SchM_BswService) {
                SCHM_MAINFUNCTION_J1939TP();\r
                SCHM_MAINFUNCTION_DCM();\r
                SCHM_MAINFUNCTION_DEM();\r
-               SCHM_MAINFUNCTION_PWM();\r
+\r
                SCHM_MAINFUNCTION_IOWHAB();\r
                SCHM_MAINFUNCTION_COMM();\r
                SCHM_MAINFUNCTION_NM();\r
index 4fda7b5d28e30b7acb6ad7a7443d37901fcc6315..f35d039c7872319376b50496b9a6682bc64dbf1e 100644 (file)
 #ifndef SCHM_CAN_H_\r
 #define SCHM_CAN_H_\r
 \r
-\r
+#define SCHM_MAINFUNCTION_CAN_WRITE()  SCHM_MAINFUNCTION(CAN_WRITE,Can_MainFunction_Write())\r
+#define SCHM_MAINFUNCTION_CAN_READ()   SCHM_MAINFUNCTION(CAN_READ,Can_MainFunction_Read())\r
+#define SCHM_MAINFUNCTION_CAN_BUSOFF()         SCHM_MAINFUNCTION(CAN_BUSOFF,Can_MainFunction_BusOff())\r
+#define SCHM_MAINFUNCTION_CAN_WAKEUP()         SCHM_MAINFUNCTION(CAN_WAKEUP,Can_MainFunction_Wakeup())\r
+#define SCHM_MAINFUNCTION_CAN_ERROR()  SCHM_MAINFUNCTION(CAN_ERROR,Can_MainFunction_Error())\r
 \r
 #endif /* SCHM_CAN_H_ */\r
diff --git a/system/SchM/SchM_CanNm.h b/system/SchM/SchM_CanNm.h
new file mode 100644 (file)
index 0000000..30238d6
--- /dev/null
@@ -0,0 +1,22 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+#ifndef SCHM_CANNM_H_\r
+#define SCHM_CANNM_H_\r
+\r
+#define SCHM_MAINFUNCTION_CANNM()      SCHM_MAINFUNCTION(CANNM,CanNm_MainFunction())\r
+\r
+\r
+#endif /* SCHM_CANNM_H_ */\r
diff --git a/system/SchM/SchM_CanSM.h b/system/SchM/SchM_CanSM.h
new file mode 100644 (file)
index 0000000..09717d1
--- /dev/null
@@ -0,0 +1,22 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+#ifndef SCHM_CANSM_H_\r
+#define SCHM_CANSM_H_\r
+\r
+#define SCHM_MAINFUNCTION_CANSM()      SCHM_MAINFUNCTION(CANSM,CanSM_MainFunction())\r
+\r
+#endif /* SCHM_CANSM_H_ */\r
index 718aa84173c3a5364f16736bfdf67c889c2df126..3e573481a58dfc69d43beec26f0343e53f826f75 100644 (file)
@@ -16,5 +16,6 @@
 #ifndef SCHM_CANTP_H_\r
 #define SCHM_CANTP_H_\r
 \r
+#define SCHM_MAINFUNCTION_CANTP()      SCHM_MAINFUNCTION(CANTP,CanTp_MainFunction())\r
 \r
 #endif /* SCHM_CANTP_H_ */\r
diff --git a/system/SchM/SchM_Com.h b/system/SchM/SchM_Com.h
new file mode 100644 (file)
index 0000000..93b9a42
--- /dev/null
@@ -0,0 +1,23 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+#ifndef SCHM_COM_H_\r
+#define SCHM_COM_H_\r
+\r
+#define SCHM_MAINFUNCTION_COMRX()      SCHM_MAINFUNCTION(COMRX,Com_MainFunctionRx())\r
+#define SCHM_MAINFUNCTION_COMTX()      SCHM_MAINFUNCTION(COMTX,Com_MainFunctionTx())\r
+\r
+#endif /* SCHM_COM_H_ */\r
diff --git a/system/SchM/SchM_ComM.h b/system/SchM/SchM_ComM.h
new file mode 100644 (file)
index 0000000..ac38932
--- /dev/null
@@ -0,0 +1,22 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+#ifndef SCHM_COMM_H_\r
+#define SCHM_COMM_H_\r
+\r
+#define SCHM_MAINFUNCTION_COMM()       SCHM_MAINFUNCTION(COMM,ComM_MainFunction())\r
+\r
+#endif /* SCHM_COMM_H_ */\r
diff --git a/system/SchM/SchM_Dcm.h b/system/SchM/SchM_Dcm.h
new file mode 100644 (file)
index 0000000..48eebb8
--- /dev/null
@@ -0,0 +1,22 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+#ifndef SCHM_DCM_H_\r
+#define SCHM_DCM_H_\r
+\r
+#define SCHM_MAINFUNCTION_DCM()        SCHM_MAINFUNCTION(DCM,Dcm_MainFunction())\r
+\r
+#endif /* SCHM_DCM_H_ */\r
diff --git a/system/SchM/SchM_Dem.h b/system/SchM/SchM_Dem.h
new file mode 100644 (file)
index 0000000..23b6aef
--- /dev/null
@@ -0,0 +1,22 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+#ifndef SCHM_DEM_H_\r
+#define SCHM_DEM_H_\r
+\r
+#define SCHM_MAINFUNCTION_DEM()        SCHM_MAINFUNCTION(DEM,Dem_MainFunction())\r
+\r
+#endif /* SCHM_DEM_H_ */\r
diff --git a/system/SchM/SchM_Nm.h b/system/SchM/SchM_Nm.h
new file mode 100644 (file)
index 0000000..a0f2ed1
--- /dev/null
@@ -0,0 +1,22 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+#ifndef SCHM_NM_H_\r
+#define SCHM_NM_H_\r
+\r
+#define SCHM_MAINFUNCTION_NM()         SCHM_MAINFUNCTION(NM,Nm_MainFunction())\r
+\r
+#endif /* SCHM_NM_H_ */\r
diff --git a/system/SchM/SchM_PduR.h b/system/SchM/SchM_PduR.h
new file mode 100644 (file)
index 0000000..1f2d105
--- /dev/null
@@ -0,0 +1,21 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+#ifndef SCHM_PDUR_H_\r
+#define SCHM_PDUR_H_\r
+\r
+\r
+\r
+#endif /* SCHM_PDUR_H_ */\r
diff --git a/system/SchM/SchM_Pwm.h b/system/SchM/SchM_Pwm.h
new file mode 100644 (file)
index 0000000..3a58a66
--- /dev/null
@@ -0,0 +1,21 @@
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+#ifndef SCHM_PWM_H_\r
+#define SCHM_PWM_H_\r
+\r
+\r
+\r
+#endif /* SCHM_PWM_H_ */\r
index 4c418b24b421480ac3798427da5ed646c1813ca8..04e8046598198f47be3da1f90169b14558be176a 100644 (file)
 #define SCHM_CYCLE_MAIN                                (5)\r
 \r
 #define SCHM_MAINFUNCTION_CYCLE_ADC     SCHM_CYCLE_MAIN\r
-#define SCHM_MAINFUNCTION_CYCLE_CAN     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_CAN_WRITE     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_CAN_READ     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_CAN_BUSOFF     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_CAN_WAKEUP     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_CAN_ERROR     SCHM_CYCLE_MAIN\r
+\r
 #define SCHM_MAINFUNCTION_CYCLE_CANNM   SCHM_CYCLE_MAIN\r
 #define SCHM_MAINFUNCTION_CYCLE_CANSM   SCHM_CYCLE_MAIN\r
 #define SCHM_MAINFUNCTION_CYCLE_CANTP   SCHM_CYCLE_MAIN\r
 #define SCHM_MAINFUNCTION_CYCLE_CANTRCV SCHM_CYCLE_MAIN\r
-#define SCHM_MAINFUNCTION_CYCLE_COM     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_COMRX     SCHM_CYCLE_MAIN\r
+#define SCHM_MAINFUNCTION_CYCLE_COMTX     SCHM_CYCLE_MAIN\r
 #define SCHM_MAINFUNCTION_CYCLE_COMM    SCHM_CYCLE_MAIN\r
 #define SCHM_MAINFUNCTION_CYCLE_DCM     SCHM_CYCLE_MAIN\r
 #define SCHM_MAINFUNCTION_CYCLE_DEM     SCHM_CYCLE_MAIN\r