You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2022/04/11 22:55:11 UTC

[incubator-nuttx] 05/08: boards: cxd56xx: Make board_late_initialize a weak function

This is an automated email from the ASF dual-hosted git repository.

masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 22d2ef0bf42270a1841735b6249b5bf07b5ebc54
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Mon Apr 11 20:10:10 2022 +0900

    boards: cxd56xx: Make board_late_initialize a weak function
    
    Add a weak_function to the board_late_initialize function so that
    it can be replaced by another file, such as a user application.
---
 boards/arm/cxd56xx/spresense/src/cxd56_appinit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_appinit.c b/boards/arm/cxd56xx/spresense/src/cxd56_appinit.c
index eb0f656bdf..d0b88ba21b 100644
--- a/boards/arm/cxd56xx/spresense/src/cxd56_appinit.c
+++ b/boards/arm/cxd56xx/spresense/src/cxd56_appinit.c
@@ -23,6 +23,7 @@
  ****************************************************************************/
 
 #include <nuttx/config.h>
+#include <nuttx/compiler.h>
 
 #include <nuttx/board.h>
 
@@ -93,7 +94,7 @@ int board_app_initialize(uintptr_t arg)
  ****************************************************************************/
 
 #ifdef CONFIG_BOARD_LATE_INITIALIZE
-void board_late_initialize(void)
+void weak_function board_late_initialize(void)
 {
   /* Perform board bring-up here instead of from the
    * board_app_initialize().