OSDN Git Service

Remove all samples. They will work well and useful for reference. But there is no...
[nxt-jsp/etrobo-atk.git] / nxtOSEK / samples_c / eventtest / template.c
diff --git a/nxtOSEK/samples_c/eventtest/template.c b/nxtOSEK/samples_c/eventtest/template.c
deleted file mode 100644 (file)
index 64a5568..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-\r
-#include "kernel.h"\r
-#include "kernel_id.h"\r
-#include "ecrobot_interface.h"\r
-\r
-/*--------------------------------------------------------------------------*/\r
-/* OSEK declarations                                                        */\r
-/*--------------------------------------------------------------------------*/\r
-DeclareEvent(BarrierEvent);\r
-DeclareTask(LowTask);\r
-DeclareTask(HighTask);\r
-\r
-/*--------------------------------------------------------------------------*/\r
-/* Definitions                                                              */\r
-/*--------------------------------------------------------------------------*/\r
-int digits;\r
-\r
-/*--------------------------------------------------------------------------*/\r
-/* Function to be invoked from a category 2 interrupt                       */\r
-/*--------------------------------------------------------------------------*/\r
-void user_1ms_isr_type2(){}\r
-\r
-/*--------------------------------------------------------------------------*/\r
-/* Task information:                                                        */\r
-/* -----------------                                                        */\r
-/* Name    : LowTask                                                        */\r
-/* Priority: 2                                                              */\r
-/* Typ     : EXTENDED TASK                                                  */\r
-/* Schedule: preemptive                                                     */\r
-/*--------------------------------------------------------------------------*/\r
-TASK(LowTask)\r
-{\r
-    int hcount, lcount;\r
-\r
-    while(1) {\r
-         for (hcount = 0; hcount < 10; hcount++) {\r
-                 for (lcount = 0; lcount < 3200; lcount++) ;\r
-                 digits--;\r
-                 ecrobot_debug1(digits, hcount, 0);\r
-         }\r
-      SetEvent(HighTask, BarrierEvent);\r
-    }\r
-\r
-    TerminateTask(); /* or ChainTask() */\r
-}\r
-\r
-/*--------------------------------------------------------------------------*/\r
-/* Task information:                                                        */\r
-/* -----------------                                                        */\r
-/* Name    : HighTask                                                       */\r
-/* Priority: 3                                                              */\r
-/* Typ     : EXTENDED TASK                                                  */\r
-/* Schedule: preemptive                                                     */\r
-/*--------------------------------------------------------------------------*/\r
-TASK(HighTask)\r
-{\r
-       int hcount, lcount;\r
-\r
-       while(1) {\r
-               for (hcount = 0; hcount < 10; hcount++) {\r
-                       for (lcount = 0; lcount < 3200; lcount++) ;\r
-                         digits++;\r
-                         ecrobot_debug2(digits, hcount, 0);\r
-               }\r
-               WaitEvent(BarrierEvent);\r
-        ClearEvent(BarrierEvent);\r
-        digits=0;\r
-    }\r
-\r
-    TerminateTask(); /* or ChainTask() */\r
-}\r
-\r