summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-30 11:14:51 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-30 11:14:51 -0600
commit932f0d94e00ef4fd1763ebe7097ff74f42728212 (patch)
tree5f7d5100cc8596daba6339432c1d6b3598ff7d26
parent890ad5576a3d88cf27246c3b4cfe542e721c72dd (diff)
downloadnuttx-932f0d94e00ef4fd1763ebe7097ff74f42728212.tar.gz
nuttx-932f0d94e00ef4fd1763ebe7097ff74f42728212.tar.bz2
nuttx-932f0d94e00ef4fd1763ebe7097ff74f42728212.zip
Cosmetic: Fix all comments, defaults, etc. that references the defunct name user_start
-rw-r--r--apps/platform/stm3240g-eval/up_cxxinitialize.c6
-rw-r--r--nuttx/TODO4
-rw-r--r--nuttx/drivers/usbhost/usbhost_hidkbd.c2
-rw-r--r--nuttx/drivers/usbhost/usbhost_hidmouse.c2
-rw-r--r--nuttx/include/nuttx/arch.h6
-rw-r--r--nuttx/sched/Kconfig14
-rw-r--r--nuttx/sched/init/os_bringup.c4
-rw-r--r--nuttx/sched/init/os_start.c4
-rw-r--r--nuttx/tools/mkconfig.c2
9 files changed, 22 insertions, 22 deletions
diff --git a/apps/platform/stm3240g-eval/up_cxxinitialize.c b/apps/platform/stm3240g-eval/up_cxxinitialize.c
index de17dd36b..329e8a617 100644
--- a/apps/platform/stm3240g-eval/up_cxxinitialize.c
+++ b/apps/platform/stm3240g-eval/up_cxxinitialize.c
@@ -115,9 +115,9 @@ extern uint32_t _etext;
* initialization of the static C++ class instances.
*
* This function should then be called in the application-specific
- * user_start logic in order to perform the C++ initialization. NOTE
- * that no component of the core NuttX RTOS logic is involved; This
- * function defintion only provides the 'contract' between application
+ * logic in order to perform the C++ initialization. NOTE that no
+ * component of the core NuttX RTOS logic is involved; This function
+ * definition only provides the 'contract' between application
* specific C++ code and platform-specific toolchain support
*
***************************************************************************/
diff --git a/nuttx/TODO b/nuttx/TODO
index 643ac9c67..28776465f 100644
--- a/nuttx/TODO
+++ b/nuttx/TODO
@@ -519,13 +519,13 @@ o C++ Support
this will provide the model for all solutions. Basically, if
CONFIG_HAVE_CXXINITIALIZE=y is defined in the configuration, then
board-specific code must provide the interface up_cxxinitialize().
- up_cxxinitialize() is called from user_start() to initialize
+ up_cxxinitialize() is called from aplication logic to initialize
all static class instances. This TODO item probably has to stay
open because this solution is only available on STM32 F4.
Status: Open
Priority: Low, depends on toolchain. Call to gcc's built-in static
constructor logic will probably have to be performed by
- user logic in user_start().
+ user logic in the application.
Title: STATIC CONSTRUCTORS AND MULTITASKING
Description: The logic that calls static constructors operates on the main
diff --git a/nuttx/drivers/usbhost/usbhost_hidkbd.c b/nuttx/drivers/usbhost/usbhost_hidkbd.c
index 6af5b6a7b..cbea5ade0 100644
--- a/nuttx/drivers/usbhost/usbhost_hidkbd.c
+++ b/nuttx/drivers/usbhost/usbhost_hidkbd.c
@@ -1563,7 +1563,7 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv)
* memory resources, primarily for the dedicated stack (CONFIG_HIDKBD_STACKSIZE).
*/
- uvdbg("user_start: Start poll task\n");
+ uvdbg("Start poll task\n");
/* The inputs to a task started by task_create() are very awkard for this
* purpose. They are really designed for command line tasks (argc/argv). So
diff --git a/nuttx/drivers/usbhost/usbhost_hidmouse.c b/nuttx/drivers/usbhost/usbhost_hidmouse.c
index 3ad3b51b7..0f93ff06c 100644
--- a/nuttx/drivers/usbhost/usbhost_hidmouse.c
+++ b/nuttx/drivers/usbhost/usbhost_hidmouse.c
@@ -1635,7 +1635,7 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv)
* memory resources, primarily for the dedicated stack (CONFIG_HIDMOUSE_STACKSIZE).
*/
- uvdbg("user_start: Start poll task\n");
+ uvdbg("Start poll task\n");
/* The inputs to a task started by task_create() are very awkward for this
* purpose. They are really designed for command line tasks (argc/argv). So
diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h
index a9290d8a3..63670d27c 100644
--- a/nuttx/include/nuttx/arch.h
+++ b/nuttx/include/nuttx/arch.h
@@ -1326,9 +1326,9 @@ void up_udelay(useconds_t microseconds);
* initialization of the static C++ class instances.
*
* This function should then be called in the application-specific
- * user_start logic in order to perform the C++ initialization. NOTE
- * that no component of the core NuttX RTOS logic is involved; This
- * function definition only provides the 'contract' between application
+ * logic in order to perform the C++ initialization. NOTE that no
+ * component of the core NuttX RTOS logic is involved; This function
+ * definition only provides the 'contract' between application
* specific C++ code and platform-specific toolchain support
*
***************************************************************************/
diff --git a/nuttx/sched/Kconfig b/nuttx/sched/Kconfig
index 57e96e571..c3f7dbbf2 100644
--- a/nuttx/sched/Kconfig
+++ b/nuttx/sched/Kconfig
@@ -220,11 +220,11 @@ menu "Tasks and Scheduling"
config USER_ENTRYPOINT
string "Application entry point"
- default "user_start"
+ default "main"
---help---
The name of the entry point for user applications. For the example
applications this is of the form 'app_main' where 'app' is the application
- name. If not defined, USER_ENTRYPOINT defaults to "user_start."
+ name. If not defined, USER_ENTRYPOINT defaults to "main".
config RR_INTERVAL
int "Round robin timeslice (MSEC)"
@@ -716,16 +716,16 @@ config IDLETHREAD_STACKSIZE
default 1024
---help---
The size of the initial stack used by the IDLE thread. The IDLE thread
- is the thread that (1) performs the inital boot of the system up to the
- point where user_start() is spawned, and (2) there after is the IDLE
- thread that executes only when there is no other thread ready to run.
+ is the thread that (1) performs the initial boot of the system up to the
+ point where start-up appliation is spawned, and (2) there after is the
+ IDLE thread that executes only when there is no other thread ready to run.
config USERMAIN_STACKSIZE
int "Main thread stack size"
default 2048
---help---
- The size of the stack to allocate for the main user thread that begins at
- the user_start() entry point.
+ The size of the stack to allocate for the user initialization thread
+ that is started as soon as the OS completes its initialization.
config PTHREAD_STACK_MIN
int "Minimum pthread stack size"
diff --git a/nuttx/sched/init/os_bringup.c b/nuttx/sched/init/os_bringup.c
index 175330ad5..150aa4481 100644
--- a/nuttx/sched/init/os_bringup.c
+++ b/nuttx/sched/init/os_bringup.c
@@ -63,8 +63,8 @@
****************************************************************************/
/* If NuttX is built as a separately compiled module, then the config.h header
- * file should contain the address of the user module entry point. If not
- * then the default entry point is user_start.
+ * file should contain the address of the entry point (or path to the file)
+ * that will perform the application-level initialization.
*/
/* Customize some strings */
diff --git a/nuttx/sched/init/os_start.c b/nuttx/sched/init/os_start.c
index 7130b8ae8..b1ac5af2f 100644
--- a/nuttx/sched/init/os_start.c
+++ b/nuttx/sched/init/os_start.c
@@ -207,8 +207,8 @@ const struct tasklist_s g_tasklisttable[NUM_TASK_STATES] =
****************************************************************************/
/* This is the task control block for this thread of execution. This thread
* of execution is the IDLE task. NOTE: the system boots into the IDLE
- * task. The IDLE task spawns the user initialization task (user_start) and
- * that user init task is responsible for bringing up the rest of the system
+ * task. The IDLE task spawns the user initialization task and that user
+ * initialization task is responsible for bringing up the rest of the system.
*/
static FAR struct task_tcb_s g_idletcb;
diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c
index 18d91e7c7..8fe572825 100644
--- a/nuttx/tools/mkconfig.c
+++ b/nuttx/tools/mkconfig.c
@@ -276,7 +276,7 @@ int main(int argc, char **argv, char **envp)
printf(" * with existing code, for builds which do not define CONFIG_USER_ENTRYPOINT.\n");
printf(" */\n\n");
printf("#ifndef CONFIG_USER_ENTRYPOINT\n");
- printf("# define CONFIG_USER_ENTRYPOINT user_start\n");
+ printf("# define CONFIG_USER_ENTRYPOINT main\n");
printf("#endif\n\n");
printf("#endif /* __INCLUDE_NUTTX_CONFIG_H */\n");
fclose(stream);