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 / wavtest / wavtest.c
diff --git a/nxtOSEK/samples_c/wavtest/wavtest.c b/nxtOSEK/samples_c/wavtest/wavtest.c
deleted file mode 100644 (file)
index f7e902f..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* wavtest.c */\r
-#include "kernel.h"\r
-#include "kernel_id.h"\r
-#include "ecrobot_interface.h"\r
-\r
-/* OSEK declarations */\r
-DeclareTask(Task1); \r
-\r
-/* LEJOS OSEK hook to be invoked from an ISR in category 2 */\r
-void user_1ms_isr_type2(void){}\r
-\r
-/*\r
- * a wav file can be accessed by using following macros:\r
- * E.g lego_mindstorms_nxt.wav\r
- * EXTERNAL_WAV_DATA(file name without extension); <- This is external declarations\r
- * WAV_DATA_START(file name without extension)     <- start address of a wav file\r
- * WAV_DATA_END(file name without extension)       <- end address of a wav file\r
- * WAV_DATA_SIZE(file name without extension)      <- size of a wav file \r
- */\r
-EXTERNAL_WAV_DATA(lego_mindstorms_nxt);\r
-\r
-TASK(Task1)\r
-{\r
-       display_clear(0);\r
-       display_goto_xy(0, 0);\r
-       display_string("WAV TEST");\r
-       display_goto_xy(0, 2);\r
-       display_string("PRESS ENTR");\r
-       display_update();\r
-\r
-       while(1)\r
-       {\r
-               if (ecrobot_is_ENTER_button_pressed())\r
-               {\r
-                       ecrobot_sound_wav(WAV_DATA_START(lego_mindstorms_nxt), \r
-                               (U32)WAV_DATA_SIZE(lego_mindstorms_nxt), -1, 70);\r
-               }\r
-       }\r
-  \r
-       TerminateTask();\r
-}\r