OSDN Git Service

Changed the implementation with lib.
[kozos-expbrd/kozos_expbrd.git] / firm / sample / simple_mp3_player / os / task_command.c
index 1eebd73..bb8c790 100644 (file)
@@ -3,7 +3,6 @@
 #include "kozos.h"
 #include "lib.h"
 #include "driver_console.h"
-#include "ipc_display.h"
 #include "ntshell.h"
 
 int func_read(char *buf, int cnt)
@@ -23,11 +22,8 @@ int func_read(char *buf, int cnt)
 int func_write(const char *buf, int cnt)
 {
   int i;
-  char tmp[8];
   for (i = 0; i < cnt; i++) {
-    tmp[0] = buf[i];
-    tmp[1] = '\0';
-    console_write(tmp);
+    putc(buf[i]);
   }
   return 0;
 }
@@ -35,8 +31,8 @@ int func_write(const char *buf, int cnt)
 int func_callback(const char *text, void *extobj)
 {
   if (strlen(text) > 0) {
-    console_write((char *)text);
-    console_write("\n");
+    puts((unsigned char *)text);
+    puts("\n");
   }
   return 0;
 }