summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-01 13:21:15 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-01 13:21:15 -0600
commit7bfdcaa22bd60cd34f11b0592c53fc5da1a37617 (patch)
tree77b4f3886eb3f4049545827c2008d161c318a9fa /apps/examples
parent9ee5cfaffa313949563fb37f7cd39a2b7620a4dd (diff)
downloadnuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.tar.gz
nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.tar.bz2
nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.zip
Remove final traces of the 8015 from the NuttX source tree
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/cc3000/telnetd_daemon.c4
-rw-r--r--apps/examples/ftpd/ftpd_main.c2
-rw-r--r--apps/examples/hidkbd/hidkbd_main.c5
-rw-r--r--apps/examples/nxconsole/nxcon_main.c2
-rw-r--r--apps/examples/ostest/fpu.c4
-rw-r--r--apps/examples/ostest/ostest_main.c5
-rw-r--r--apps/examples/ostest/restart.c2
-rw-r--r--apps/examples/ostest/waitpid.c2
8 files changed, 8 insertions, 18 deletions
diff --git a/apps/examples/cc3000/telnetd_daemon.c b/apps/examples/cc3000/telnetd_daemon.c
index 2adadc60a..223774190 100644
--- a/apps/examples/cc3000/telnetd_daemon.c
+++ b/apps/examples/cc3000/telnetd_daemon.c
@@ -239,7 +239,7 @@ static int telnetd_daemon(int argc, char *argv[])
*/
nllvdbg("Starting the telnet session\n");
- pid = TASK_CREATE("Telnet session", daemon->priority, daemon->stacksize,
+ pid = task_create("Telnet session", daemon->priority, daemon->stacksize,
daemon->entry, NULL);
if (pid < 0)
{
@@ -319,7 +319,7 @@ int telnetd_start(FAR struct telnetd_config_s *config)
/* Then start the new daemon */
g_telnetdcommon.daemon = daemon;
- pid = TASK_CREATE("Telnet daemon", config->d_priority, config->d_stacksize,
+ pid = task_create("Telnet daemon", config->d_priority, config->d_stacksize,
telnetd_daemon, NULL);
if (pid < 0)
{
diff --git a/apps/examples/ftpd/ftpd_main.c b/apps/examples/ftpd/ftpd_main.c
index 507d90e5f..8054c3207 100644
--- a/apps/examples/ftpd/ftpd_main.c
+++ b/apps/examples/ftpd/ftpd_main.c
@@ -256,7 +256,7 @@ int ftpd_main(int s_argc, char **s_argv)
if (!g_ftpdglob.running)
{
printf("Starting the FTP daemon\n");
- g_ftpdglob.pid = TASK_CREATE("FTP daemon", CONFIG_EXAMPLES_FTPD_PRIO,
+ g_ftpdglob.pid = task_create("FTP daemon", CONFIG_EXAMPLES_FTPD_PRIO,
CONFIG_EXAMPLES_FTPD_STACKSIZE,
ftpd_daemon, NULL);
if (g_ftpdglob.pid < 0)
diff --git a/apps/examples/hidkbd/hidkbd_main.c b/apps/examples/hidkbd/hidkbd_main.c
index 67778f683..f1885744f 100644
--- a/apps/examples/hidkbd/hidkbd_main.c
+++ b/apps/examples/hidkbd/hidkbd_main.c
@@ -306,14 +306,9 @@ int hidkbd_main(int argc, char *argv[])
printf("hidkbd_main: Start hidkbd_waiter\n");
-#ifndef CONFIG_CUSTOM_STACK
pid = task_create("usbhost", CONFIG_EXAMPLES_HIDKBD_DEFPRIO,
CONFIG_EXAMPLES_HIDKBD_STACKSIZE,
(main_t)hidkbd_waiter, (FAR char * const *)NULL);
-#else
- pid = task_create("usbhost", CONFIG_EXAMPLES_HIDKBD_DEFPRIO,
- (main_t)hidkbd_waiter, (FAR char * const *)NULL);
-#endif
UNUSED(pid);
/* Now just sleep. Eventually logic here will open the kbd device and
diff --git a/apps/examples/nxconsole/nxcon_main.c b/apps/examples/nxconsole/nxcon_main.c
index 45223dcb1..550ce4912 100644
--- a/apps/examples/nxconsole/nxcon_main.c
+++ b/apps/examples/nxconsole/nxcon_main.c
@@ -389,7 +389,7 @@ int nxcon_main(int argc, char **argv)
* from this task.
*/
- g_nxcon_vars.pid = TASK_CREATE("NxConsole", CONFIG_EXAMPLES_NXCONSOLE_PRIO,
+ g_nxcon_vars.pid = task_create("NxConsole", CONFIG_EXAMPLES_NXCONSOLE_PRIO,
CONFIG_EXAMPLES_NXCONSOLE_STACKSIZE,
nxcon_task, NULL);
ASSERT(g_nxcon_vars.pid > 0);
diff --git a/apps/examples/ostest/fpu.c b/apps/examples/ostest/fpu.c
index 2729348ed..47b668524 100644
--- a/apps/examples/ostest/fpu.c
+++ b/apps/examples/ostest/fpu.c
@@ -308,7 +308,7 @@ void fpu_test(void)
g_fpuno = 0;
printf("Starting task FPU#1\n");
- task1 = TASK_CREATE("FPU#1", CONFIG_EXAMPLES_OSTEST_FPUPRIORITY, CONFIG_EXAMPLES_OSTEST_FPUSTACKSIZE, fpu_task, NULL);
+ task1 = task_create("FPU#1", CONFIG_EXAMPLES_OSTEST_FPUPRIORITY, CONFIG_EXAMPLES_OSTEST_FPUSTACKSIZE, fpu_task, NULL);
if (task1 < 0)
{
printf("fpu_test: ERROR Failed to start task FPU#1\n");
@@ -321,7 +321,7 @@ void fpu_test(void)
usleep(250);
printf("Starting task FPU#2\n");
- task2 = TASK_CREATE("FPU#2", CONFIG_EXAMPLES_OSTEST_FPUPRIORITY, CONFIG_EXAMPLES_OSTEST_FPUSTACKSIZE, fpu_task, NULL);
+ task2 = task_create("FPU#2", CONFIG_EXAMPLES_OSTEST_FPUPRIORITY, CONFIG_EXAMPLES_OSTEST_FPUSTACKSIZE, fpu_task, NULL);
if (task2 < 0)
{
printf("fpu_test: ERROR Failed to start task FPU#1\n");
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index f7879ed3a..8e78e5d2d 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -552,13 +552,8 @@ int ostest_main(int argc, FAR char *argv[])
/* Verify that we can spawn a new task */
-#ifndef CONFIG_CUSTOM_STACK
result = task_create("ostest", PRIORITY, STACKSIZE, user_main,
(FAR char * const *)g_argv);
-#else
- result = task_create("ostest", PRIORITY, user_main,
- (FAR char * const *)g_argv);
-#endif
if (result == ERROR)
{
printf("ostest_main: ERROR Failed to start user_main\n");
diff --git a/apps/examples/ostest/restart.c b/apps/examples/ostest/restart.c
index 0d0f90d07..703dbd90e 100644
--- a/apps/examples/ostest/restart.c
+++ b/apps/examples/ostest/restart.c
@@ -166,7 +166,7 @@ void restart_test(void)
/* Start the task */
- ret = TASK_CREATE("ostest", PRIORITY, STACKSIZE, restart_main, g_argv);
+ ret = task_create("ostest", PRIORITY, STACKSIZE, restart_main, g_argv);
if (ret < 0)
{
printf("restart_main: ERROR Failed to start restart_main\n");
diff --git a/apps/examples/ostest/waitpid.c b/apps/examples/ostest/waitpid.c
index 0649748a2..6b6de7908 100644
--- a/apps/examples/ostest/waitpid.c
+++ b/apps/examples/ostest/waitpid.c
@@ -84,7 +84,7 @@ static void waitpid_start_children(void)
for (i = 0; i < NCHILDREN; i++)
{
- ret = TASK_CREATE("waitpid", PRIORITY, STACKSIZE, waitpid_main, NULL);
+ ret = task_create("waitpid", PRIORITY, STACKSIZE, waitpid_main, NULL);
if (ret < 0)
{
printf("waitpid_start_child: ERROR Failed to start waitpid_main\n");