3 #include "driver_console.h"
4 #include "driver_led.h"
7 int task_command(int argc, char *argv[])
12 console_use(SERIAL_DEFAULT_DEVICE);
15 console_write("command> "); /* ¥×¥í¥ó¥×¥Èɽ¼¨ */
17 /* ¥³¥ó¥½¡¼¥ë¤«¤é¤Î¼õ¿®Ê¸»úÎó¤ò¼õ¤±¼è¤ë */
18 kz_recv(MSGBOX_ID_CONSINPUT, &size, &p);
20 console_write("expired.\n");
25 if (!strncmp(p, "echo", 4)) { /* echo¥³¥Þ¥ó¥É */
26 console_write(p + 4); /* echo¤Ë³¤¯Ê¸»úÎó¤ò½ÐÎϤ¹¤ë */
28 } else if (!strncmp(p, "led1", 4)) {
30 } else if (!strncmp(p, "led2", 4)) {
32 } else if (!strncmp(p, "ledg", 4)) {
34 } else if (!strncmp(p, "ledr", 4)) {
37 console_write("unknown.\n");