5 #include "driver_console.h"
8 int func_read(char *buf, int cnt)
11 for (i = 0; i < cnt; i++) {
14 /* ¥³¥ó¥½¡¼¥ë¤«¤é¤Î¼õ¿®Ê¸»úÎó¤ò¼õ¤±¼è¤ë */
15 kz_recv(MSGBOX_ID_CONSINPUT, &size, &p);
22 int func_write(const char *buf, int cnt)
25 for (i = 0; i < cnt; i++) {
31 int func_callback(const char *text, void *extobj)
33 if (strlen(text) > 0) {
34 puts((unsigned char *)text);
40 int task_command(int argc, char *argv[])
44 console_use(SERIAL_DEFAULT_DEVICE);
47 ntshell_execute(&ntshell, func_read, func_write, func_callback, NULL);