You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/21 15:21:46 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5577: os init_state: add new state OSINIT_OSIDLELOOP

xiaoxiang781216 commented on a change in pull request #5577:
URL: https://github.com/apache/incubator-nuttx/pull/5577#discussion_r811230485



##########
File path: include/nuttx/init.h
##########
@@ -51,22 +52,23 @@
 
 enum nx_initstate_e
 {
-  OSINIT_POWERUP   = 0,  /* Power-up.  No initialization yet performed.
+  OSINIT_POWERUP    = 0, /* Power-up.  No initialization yet performed.
                           * Depends on .bss initialization logic for this
                           * value. */
-  OSINIT_BOOT      = 1,  /* Basic boot up initialization is complete.  OS
+  OSINIT_BOOT       = 1, /* Basic boot up initialization is complete.  OS
                           * services and hardware resources are not yet
                           * available. */
-  OSINIT_TASKLISTS = 2,  /* Head of ready-to-run/assigned task lists valid */
-  OSINIT_MEMORY    = 3,  /* The memory manager has been initialized */
-  OSINIT_HARDWARE  = 4,  /* MCU-specific hardware is initialized.  Hardware
+  OSINIT_TASKLISTS  = 2, /* Head of ready-to-run/assigned task lists valid */
+  OSINIT_MEMORY     = 3, /* The memory manager has been initialized */
+  OSINIT_HARDWARE   = 4, /* MCU-specific hardware is initialized.  Hardware
                           * resources such as timers and device drivers are
                           * now available.  Low-level OS services sufficient
                           * to support the hardware are also available but
                           * the OS has not yet completed its full
                           * initialization. */
-  OSINIT_OSREADY   = 5   /* The OS is fully initialized and multi-tasking is
+  OSINIT_OSREADY    = 5, /* The OS is fully initialized and multi-tasking is
                           * active. */
+  OSINIT_OSIDLELOOP = 6  /* The OS enter idle loop */

Review comment:
       remove OS prefix




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org