Rename files containing board_app_initialize from xyz_nsh.c to xyz_appinit.c
This commit is contained in:
parent
13acc0d0a3
commit
1753b639cc
@ -4098,7 +4098,7 @@ mount -t vfat /dev/ram1 /tmp
|
||||
<p>
|
||||
<code>board_app_initialize()</code>:
|
||||
Next any architecture-specific NSH initialization will be performed (if any).
|
||||
For the STM3240G-EVAL, this architecture specific initialization can be found at <code>configs/stm3240g-eval/src/stm32_nsh.c</code>.
|
||||
For the STM3240G-EVAL, this architecture specific initialization can be found at <code>configs/stm3240g-eval/src/stm32_appinit.c</code>.
|
||||
This it does things like: (1) Initialize SPI devices, (2) Initialize SDIO, and (3) mount any SD cards that may be inserted.
|
||||
</p>
|
||||
<li>
|
||||
@ -4498,7 +4498,7 @@ CONFIG_SCHED_WAITPID=y
|
||||
<ol>
|
||||
<li>
|
||||
<p>
|
||||
You can extend the initialization logic in <code>configs/stm3240g-eval/src/stm32_nsh.c</code>.
|
||||
You can extend the initialization logic in <code>configs/stm3240g-eval/src/stm32_appinit.c</code>.
|
||||
The logic there is called each time that NSH is started and is good place in particular for any device-related initialization.
|
||||
</p>
|
||||
<li>
|
||||
@ -5241,7 +5241,7 @@ xxd -i romfs_img >nsh_romfsimg.h
|
||||
<li><a href="#custinit">Start-up, Default behavior</a></li>
|
||||
<li><a href="#startupscript">Start-up script</a>
|
||||
<li><a href="#custinit">Start-up script</a></li>
|
||||
<li><a href="#custinit"><code>stm32_nsh.c</code></a></li>
|
||||
<li><a href="#custinit"><code>stm32_appinit.c</code></a></li>
|
||||
<li><a href="#custapps">Synchronous built-in applications</a></li>
|
||||
<li><a href="#cmdtest"><code>test</code></a></li>
|
||||
<li><a href="#cmdtime"><code>time</code></a></li>
|
||||
|
@ -5572,8 +5572,8 @@ int kbd_decode(FAR struct lib_instream_s *stream, FAR struct kbd_getstate_s *sta
|
||||
</p>
|
||||
<p>
|
||||
<b>Examples</b>:
|
||||
The function <code>nsh_waiter()</code> in the file <code>configs/nucleus2g/src/up_nsh.c</code> and
|
||||
the function <code>nsh_waiter()</code> in the file <code>configs/olimex-lpc1766stk/src/up_nsh.c</code>.
|
||||
The function <code>nsh_waiter()</code> in the file <code>configs/nucleus2g/src/lpc17_appinit.c</code> and
|
||||
the function <code>nsh_waiter()</code> in the file <code>configs/olimex-lpc1766stk/src/lpc17_appinit.c</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
|
Loading…
Reference in New Issue
Block a user