mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
Let's rename board_driver_initialize() to board_early_initialize() to emphasize its relationship to board_late_initialize().
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user