doc: fix path to samples after restructering
Change-Id: I0366acd913188ddcdf626b95ff05b8c9c305b777 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
3bf7ee01ea
commit
47db990d44
8 changed files with 18 additions and 18 deletions
|
@ -128,7 +128,7 @@ Example src Makefile
|
||||||
|
|
||||||
This example is taken from the Philosopher's Sample. To
|
This example is taken from the Philosopher's Sample. To
|
||||||
examine this file in context, navigate to:
|
examine this file in context, navigate to:
|
||||||
:file:`rootDir/samples/microkernel/apps/philosophers/src`.
|
:file:`rootDir/samples/philosophers/microkernel/src`.
|
||||||
|
|
||||||
.. code-block:: make
|
.. code-block:: make
|
||||||
|
|
||||||
|
|
|
@ -79,14 +79,14 @@ Steps
|
||||||
defined in an :file:`.mdef` file.
|
defined in an :file:`.mdef` file.
|
||||||
|
|
||||||
The following example shows the content of the
|
The following example shows the content of the
|
||||||
:file:`samples/microkernel/apps/philosophers/proj.mdef`
|
:file:`samples/philosophers/microkernel/proj.mdef`
|
||||||
for the Philosophers' sample application. The sample
|
for the Philosophers' sample application. The sample
|
||||||
uses seven tasks and six mutexes.
|
uses seven tasks and six mutexes.
|
||||||
|
|
||||||
Example MDEF
|
Example MDEF
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. literalinclude:: ../../samples/microkernel/apps/philosophers/prj.mdef
|
.. literalinclude:: ../../samples/philosophers/microkernel/prj.mdef
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
Related Topics
|
Related Topics
|
||||||
|
|
|
@ -57,7 +57,7 @@ Flashing Arduino 101 for Zephyr
|
||||||
*******************************
|
*******************************
|
||||||
|
|
||||||
For the use of this tutorial, the sample application hello_world will be
|
For the use of this tutorial, the sample application hello_world will be
|
||||||
used found in :file:`$ZEPHYR_BASE/samples/nanokernel/apps/hello_world`.
|
used found in :file:`$ZEPHYR_BASE/samples/hello_world/nanokernel`.
|
||||||
|
|
||||||
Use the following procedures for booting an image on a Arduino 101 board.
|
Use the following procedures for booting an image on a Arduino 101 board.
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ checkout copy of Zephyr, and run:
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ source ./zephyr-env.sh
|
$ source ./zephyr-env.sh
|
||||||
$ cd $ZEPHYR_BASE/samples/nanokernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/hello_world/nanokernel
|
||||||
|
|
||||||
$ make pristine && BOARD=arduino_101_sss ARCH=arc
|
$ make pristine && BOARD=arduino_101_sss ARCH=arc
|
||||||
$ make BOARD=arduino_101_sss flash
|
$ make BOARD=arduino_101_sss flash
|
||||||
|
@ -269,7 +269,7 @@ Flashing an x86 Kernel
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ source ./zephyr-env.sh
|
$ source ./zephyr-env.sh
|
||||||
$ cd $ZEPHYR_BASE/samples/nanokernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/hello_world/nanokernel
|
||||||
$ make pristine && BOARD=arduino_101 ARCH=x86
|
$ make pristine && BOARD=arduino_101 ARCH=x86
|
||||||
$ make BOARD=arduino_101 flash
|
$ make BOARD=arduino_101 flash
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ for ARCH=x86 if you wish to debug on the x86 core.
|
||||||
at connecting and controlling the hardware.
|
at connecting and controlling the hardware.
|
||||||
|
|
||||||
This can be done by editing the
|
This can be done by editing the
|
||||||
:file:`samples/nanokernel/apps/hello_world/prj.conf` to include:
|
:file:`samples/hello_world/nanokernel/prj.conf` to include:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ for ARCH=x86 if you wish to debug on the x86 core.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd $ZEPHYR_BASE/samples/nanokernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/hello_world/nanokernel
|
||||||
$ make BOARD=arduino_101 debug
|
$ make BOARD=arduino_101 debug
|
||||||
|
|
||||||
These commands will start an openocd session that creates a local telnet
|
These commands will start an openocd session that creates a local telnet
|
||||||
|
@ -333,7 +333,7 @@ for ARCH=x86 if you wish to debug on the x86 core.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd $ZEPHYR_BASE/samples/nanokernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/hello_world/nanokernel
|
||||||
$ gdb outdir/zephyr.elf
|
$ gdb outdir/zephyr.elf
|
||||||
gdb$ target remote :3333
|
gdb$ target remote :3333
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@ for ARCH=x86 if you wish to debug on the x86 core.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd $ZEPHYR_BASE/samples/nanokernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/hello_world/nanokernel
|
||||||
$ arc_gdb outdir/zephyr.elf
|
$ arc_gdb outdir/zephyr.elf
|
||||||
gdb$ target remote :3334
|
gdb$ target remote :3334
|
||||||
|
|
||||||
|
|
|
@ -124,14 +124,14 @@ that the Arduino specific version is required (branch arduino on GitHub).
|
||||||
|
|
||||||
|
|
||||||
The sample application hello_world is being used in this tutorial, which can
|
The sample application hello_world is being used in this tutorial, which can
|
||||||
be found in :file:`$ZEPHYR_BASE/samples/nanokernel/apps/hello_world`.
|
be found in :file:`$ZEPHYR_BASE/samples/hello_world/nanokernel`.
|
||||||
|
|
||||||
# To build the Zephyr kernel, enter:
|
# To build the Zephyr kernel, enter:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd $ZEPHYR_BASE
|
$ cd $ZEPHYR_BASE
|
||||||
$ make -C samples/nanokernel/apps/hello_world ARCH=arm BOARD=arduino_due
|
$ make -C samples/hello_world/nanokernel ARCH=arm BOARD=arduino_due
|
||||||
|
|
||||||
# Connect the Arduino Due to your host computer using the programming port.
|
# Connect the Arduino Due to your host computer using the programming port.
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ ensures that the comment is appropriately linked to the code.
|
||||||
Incorrect:
|
Incorrect:
|
||||||
|
|
||||||
.. literalinclude::
|
.. literalinclude::
|
||||||
../../../../samples/microkernel/apps/philosophers/src/phil.h
|
../../../../samples/philosophers/microkernel/src/phil.h
|
||||||
|
|
||||||
:language: c
|
:language: c
|
||||||
:lines: 24-28
|
:lines: 24-28
|
||||||
|
|
|
@ -79,7 +79,7 @@ Example 1
|
||||||
|
|
||||||
Take the very simple function :c:func:`taskA()`:
|
Take the very simple function :c:func:`taskA()`:
|
||||||
|
|
||||||
.. literalinclude:: ../../../../samples/microkernel/apps/hello_world/src/hello.c
|
.. literalinclude:: ../../../../samples/synchronization/microkernel/src/hello.c
|
||||||
:language: c
|
:language: c
|
||||||
:lines: 77-85
|
:lines: 77-85
|
||||||
:emphasize-lines: 3, 6
|
:emphasize-lines: 3, 6
|
||||||
|
@ -105,7 +105,7 @@ Example 2
|
||||||
=========
|
=========
|
||||||
Take the more complex function hello_loop():
|
Take the more complex function hello_loop():
|
||||||
|
|
||||||
.. literalinclude:: ../../../../samples/microkernel/apps/hello_world/src/hello.c
|
.. literalinclude:: ../../../../samples/synchronization/microkernel/src/hello.c
|
||||||
:language: c
|
:language: c
|
||||||
:lines: 56-76
|
:lines: 56-76
|
||||||
:emphasize-lines: 1, 3-5, 7, 8, 13, 16
|
:emphasize-lines: 1, 3-5, 7, 8, 13, 16
|
||||||
|
@ -150,4 +150,4 @@ Comment blocks must have the following structure:
|
||||||
|
|
||||||
The description of the actions referenced in lines 19 and 21 is part of
|
The description of the actions referenced in lines 19 and 21 is part of
|
||||||
the detailed description in the comment block. The references shown in
|
the detailed description in the comment block. The references shown in
|
||||||
lines 19 and 21 are optional.
|
lines 19 and 21 are optional.
|
||||||
|
|
|
@ -29,7 +29,7 @@ To build an example application follow these steps:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd $ZEPHYR_BASE/samples/microkernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/hello_world/microkernel
|
||||||
|
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Semaphore, Timer, and Fiber Example
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
The following example is pulled from the file:
|
The following example is pulled from the file:
|
||||||
:file:`samples/microkernel/apps/hello_world/src/hello.c`.
|
:file:`samples/synchronization/microkernel/src/hello.c`.
|
||||||
|
|
||||||
Example Code
|
Example Code
|
||||||
************
|
************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue