Cosmetic: Fix all comments, defaults, etc. that references the defunct name user_start
This commit is contained in:
parent
704f036e54
commit
2906ff6a4a
4
TODO
4
TODO
@ -519,13 +519,13 @@ o C++ Support
|
|||||||
this will provide the model for all solutions. Basically, if
|
this will provide the model for all solutions. Basically, if
|
||||||
CONFIG_HAVE_CXXINITIALIZE=y is defined in the configuration, then
|
CONFIG_HAVE_CXXINITIALIZE=y is defined in the configuration, then
|
||||||
board-specific code must provide the interface up_cxxinitialize().
|
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
|
all static class instances. This TODO item probably has to stay
|
||||||
open because this solution is only available on STM32 F4.
|
open because this solution is only available on STM32 F4.
|
||||||
Status: Open
|
Status: Open
|
||||||
Priority: Low, depends on toolchain. Call to gcc's built-in static
|
Priority: Low, depends on toolchain. Call to gcc's built-in static
|
||||||
constructor logic will probably have to be performed by
|
constructor logic will probably have to be performed by
|
||||||
user logic in user_start().
|
user logic in the application.
|
||||||
|
|
||||||
Title: STATIC CONSTRUCTORS AND MULTITASKING
|
Title: STATIC CONSTRUCTORS AND MULTITASKING
|
||||||
Description: The logic that calls static constructors operates on the main
|
Description: The logic that calls static constructors operates on the main
|
||||||
|
@ -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).
|
* 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
|
/* 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
|
* purpose. They are really designed for command line tasks (argc/argv). So
|
||||||
|
@ -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).
|
* 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
|
/* 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
|
* purpose. They are really designed for command line tasks (argc/argv). So
|
||||||
|
@ -1326,9 +1326,9 @@ void up_udelay(useconds_t microseconds);
|
|||||||
* initialization of the static C++ class instances.
|
* initialization of the static C++ class instances.
|
||||||
*
|
*
|
||||||
* This function should then be called in the application-specific
|
* This function should then be called in the application-specific
|
||||||
* user_start logic in order to perform the C++ initialization. NOTE
|
* logic in order to perform the C++ initialization. NOTE that no
|
||||||
* that no component of the core NuttX RTOS logic is involved; This
|
* component of the core NuttX RTOS logic is involved; This function
|
||||||
* function definition only provides the 'contract' between application
|
* definition only provides the 'contract' between application
|
||||||
* specific C++ code and platform-specific toolchain support
|
* specific C++ code and platform-specific toolchain support
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
@ -220,11 +220,11 @@ menu "Tasks and Scheduling"
|
|||||||
|
|
||||||
config USER_ENTRYPOINT
|
config USER_ENTRYPOINT
|
||||||
string "Application entry point"
|
string "Application entry point"
|
||||||
default "user_start"
|
default "main"
|
||||||
---help---
|
---help---
|
||||||
The name of the entry point for user applications. For the example
|
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
|
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
|
config RR_INTERVAL
|
||||||
int "Round robin timeslice (MSEC)"
|
int "Round robin timeslice (MSEC)"
|
||||||
@ -716,16 +716,16 @@ config IDLETHREAD_STACKSIZE
|
|||||||
default 1024
|
default 1024
|
||||||
---help---
|
---help---
|
||||||
The size of the initial stack used by the IDLE thread. The IDLE thread
|
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
|
is the thread that (1) performs the initial boot of the system up to the
|
||||||
point where user_start() is spawned, and (2) there after is the IDLE
|
point where start-up appliation is spawned, and (2) there after is the
|
||||||
thread that executes only when there is no other thread ready to run.
|
IDLE thread that executes only when there is no other thread ready to run.
|
||||||
|
|
||||||
config USERMAIN_STACKSIZE
|
config USERMAIN_STACKSIZE
|
||||||
int "Main thread stack size"
|
int "Main thread stack size"
|
||||||
default 2048
|
default 2048
|
||||||
---help---
|
---help---
|
||||||
The size of the stack to allocate for the main user thread that begins at
|
The size of the stack to allocate for the user initialization thread
|
||||||
the user_start() entry point.
|
that is started as soon as the OS completes its initialization.
|
||||||
|
|
||||||
config PTHREAD_STACK_MIN
|
config PTHREAD_STACK_MIN
|
||||||
int "Minimum pthread stack size"
|
int "Minimum pthread stack size"
|
||||||
|
@ -63,8 +63,8 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* If NuttX is built as a separately compiled module, then the config.h header
|
/* 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
|
* file should contain the address of the entry point (or path to the file)
|
||||||
* then the default entry point is user_start.
|
* that will perform the application-level initialization.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Customize some strings */
|
/* Customize some strings */
|
||||||
|
@ -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
|
/* 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
|
* 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
|
* task. The IDLE task spawns the user initialization task and that user
|
||||||
* that user init task is responsible for bringing up the rest of the system
|
* initialization task is responsible for bringing up the rest of the system.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static FAR struct task_tcb_s g_idletcb;
|
static FAR struct task_tcb_s g_idletcb;
|
||||||
|
@ -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(" * with existing code, for builds which do not define CONFIG_USER_ENTRYPOINT.\n");
|
||||||
printf(" */\n\n");
|
printf(" */\n\n");
|
||||||
printf("#ifndef CONFIG_USER_ENTRYPOINT\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\n\n");
|
||||||
printf("#endif /* __INCLUDE_NUTTX_CONFIG_H */\n");
|
printf("#endif /* __INCLUDE_NUTTX_CONFIG_H */\n");
|
||||||
fclose(stream);
|
fclose(stream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user