]> rtime.felk.cvut.cz Git - arc.git/blobdiff - examples/pwm_node2/Tasks.c
Removed a lot of examples. Added some under boards.
[arc.git] / examples / pwm_node2 / Tasks.c
diff --git a/examples/pwm_node2/Tasks.c b/examples/pwm_node2/Tasks.c
deleted file mode 100644 (file)
index 410105e..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -------------------------------- 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
-\r
-\r
-\r
-\r
-\r
-\r
-#include "Os.h"\r
-\r
-#include "EcuM.h"\r
-#include <stdio.h>\r
-#include <assert.h>\r
-#include "Com.h"\r
-#include "pwm_node2_helpers.h"\r
-\r
-//#define USE_LDEBUG_PRINTF // Uncomment this to turn debug statements on.\r
-#include "debug.h"\r
-\r
-void OsIdle( void ) {\r
-       for(;;);\r
-}\r
-\r
-\r
-void ComTask( void ) {\r
-       // Run COM scheduled functions.\r
-       Com_MainFunctionTx();\r
-       Com_MainFunctionRx();\r
-\r
-       pwm_node2_receive();\r
-\r
-       TerminateTask();\r
-}\r
-\r
-/*\r
- * This is the startup task. It is activated once immediately after the OS i started.\r
- */\r
-void StartupTask( void ) {\r
-\r
-       // Call second phase of startup sequence.\r
-       EcuM_StartupTwo();\r
-\r
-       // Startup CanIf due to ComM is missing in this example\r
-       CanIf_InitController(CANIF_CHANNEL_0, CANIF_CHANNEL_0_CONFIG_0);\r
-       CanIf_SetControllerMode(CANIF_CHANNEL_0, CANIF_CS_STARTED);\r
-\r
-       // Make sure that the right PDU-groups are ready for communication.\r
-       Com_IpduGroupStart(RxGroup, 0);\r
-\r
-       // End of startup_task().\r
-       TerminateTask();\r
-}\r
-\r
-\r