Let's rename board_driver_initialize() to board_early_initialize() to emphasize its relationship to board_late_initialize().

This commit is contained in:
Gregory Nutt
2019-02-18 16:25:08 -06:00
parent a76e137ce2
commit 32a300806e
4 changed files with 25 additions and 24 deletions
+4 -3
View File
@@ -45,6 +45,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <nuttx/compiler.h>
#include <nuttx/sched.h>
#include <nuttx/fs/fs.h>
@@ -718,16 +719,16 @@ void nx_start(void)
up_initialize();
#ifdef CONFIG_BOARD_DRIVER_INITIALIZE
#ifdef CONFIG_BOARD_EARLY_INITIALIZE
/* Call the board-specific up_initialize() extension to support
* early initialization of board-specific drivers and resources
* that cannot wait until board_late_initialize.
*/
board_driver_initialize();
board_early_initialize();
#endif
/* Hardware resources are available */
/* Hardware resources are now available */
g_nx_initstate = OSINIT_HARDWARE;