Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
d677006a
Commit
d677006a
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Missing file that I forgot to add in the last commit
parent
37d8faff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configs/sama5d3x-ek/src/sam_boot.c
+27
-0
27 additions, 0 deletions
configs/sama5d3x-ek/src/sam_boot.c
configs/sama5d3x-ek/src/sama5d3x-ek.h
+18
-0
18 additions, 0 deletions
configs/sama5d3x-ek/src/sama5d3x-ek.h
with
45 additions
and
0 deletions
configs/sama5d3x-ek/src/sam_boot.c
+
27
−
0
View file @
d677006a
...
...
@@ -121,3 +121,30 @@ void sam_boardinitialize(void)
up_ledinit
();
#endif
}
/****************************************************************************
* Name: board_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* called immediately after up_intiialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void
board_initialize
(
void
)
{
/* Perform NSH initialization here instead of from the NSH. This
* alternative NSH initialization is necessary when NSH is ran in user-space
* but the initialization function must run in kernel space.
*/
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT)
(
void
)
nsh_archinitialize
();
#endif
}
#endif
/* CONFIG_BOARD_INITIALIZE */
This diff is collapsed.
Click to expand it.
configs/sama5d3x-ek/src/sama5d3x-ek.h
+
18
−
0
View file @
d677006a
...
...
@@ -654,6 +654,24 @@ void weak_function sam_netinitialize(void);
void
up_ledinit
(
void
);
#endif
/************************************************************************************
* Name: nsh_archinitialize
*
* Description:
* Perform architecture specific initialization for NSH.
*
* CONFIG_NSH_ARCHINIT=y :
* Called from the NSH library
*
* CONFIG_BOARD_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, && CONFIG_NSH_ARCHINIT=n :
* Called from board_initialize().
*
************************************************************************************/
#ifdef CONFIG_NSH_LIBRARY
int
nsh_archinitialize
(
void
);
#endif
#endif
/* __ASSEMBLY__ */
#endif
/* __CONFIGS_SAMA5D3X_EK_SRC_SAMA5D3X_EK_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment