modify definition name for tash task
authorsunghan <sh924.chang@samsung.com>
Fri, 14 Apr 2017 08:35:45 +0000 (17:35 +0900)
committersunghan <sh924.chang@samsung.com>
Fri, 14 Apr 2017 08:45:11 +0000 (17:45 +0900)
Because TASH is launched as a task, not thread, we had better change definition name.

apps/shell/tash_main.c

index 8a29349..b81b672 100644 (file)
@@ -46,8 +46,8 @@ enum tash_input_state_e {
 #define SELECT_TIMEOUT_SECS   (6)
 #define SELECT_TIMEOUT_USECS  (0)
 #endif
-#define TASH_THREAD_STACKSIZE (4096)
-#define TASH_THREAD_PRIORITY  (125)
+#define TASH_TASK_STACKSIZE   (4096)
+#define TASH_TASK_PRIORITY    (125)
 
 const char tash_prompt[] = "TASH>>";
 #endif                                                 /* CONFIG_TASH */
@@ -218,7 +218,7 @@ int tash_start(void)
 {
        int pid;
 
-       pid = task_create("tash", TASH_THREAD_PRIORITY, TASH_THREAD_STACKSIZE, tash_main, (FAR char *const *)NULL);
+       pid = task_create("tash", TASH_TASK_PRIORITY, TASH_TASK_STACKSIZE, tash_main, (FAR char *const *)NULL);
        if (pid < 0) {
                printf("TASH is not started, error code = %d\n", pid);
        }