#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
SCHM_MAINFUNCTION_CAN_ERROR();\r
SCHM_MAINFUNCTION_CAN_WAKEUP();\r
\r
- SCHM_MAINFUNCTION_PDUR();\r
\r
SCHM_MAINFUNCTION_COMRX();\r
SCHM_MAINFUNCTION_COMTX();\r
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
#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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
#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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
--- /dev/null
+/* -------------------------------- 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
#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