docs: fixed lists and indent for arduino_due

Change-Id: I674bf1d0cab30a83dc28e186c05042c53095337e
This commit is contained in:
Anas Nashif 2016-02-13 11:15:45 -05:00
commit 47b9b4c838

View file

@ -26,20 +26,20 @@ Supported Features
The arduino_due board configuration supports the following The arduino_due board configuration supports the following
hardware features: hardware features:
+--------------+------------+----------------------+ +-----------+------------+----------------------+
| Interface | Controller | Driver/Component | | Interface | Controller | Driver/Component |
+==============+============+======================+ +===========+============+======================+
| NVIC | on-chip | nested vectored | | NVIC | on-chip | nested vectored |
| | | interrupt controller | | | | interrupt controller |
+--------------+------------+----------------------+ +-----------+------------+----------------------+
| SYSTICK | on-chip | system clock | | SYSTICK | on-chip | system clock |
+--------------+------------+----------------------+ +-----------+------------+----------------------+
| UART | on-chip | serial port | | UART | on-chip | serial port |
+--------------+------------+----------------------+ +-----------+------------+----------------------+
| GPIO | on-chip | gpio | | GPIO | on-chip | gpio |
+--------------+------------+----------------------+ +-----------+------------+----------------------+
| I2C | on-chip | i2c | | I2C | on-chip | i2c |
+--------------+------------+----------------------+ +-----------+------------+----------------------+
Other hardware features are not currently supported by the Zephyr kernel. Other hardware features are not currently supported by the Zephyr kernel.
See `Arduino Due website`_ and `Atmel SAM3X8E Datasheet`_ for a complete See `Arduino Due website`_ and `Atmel SAM3X8E Datasheet`_ for a complete
@ -65,35 +65,35 @@ vector table.
Handlers are provided for exceptions 1-6, 11-12, and 14-15. Handlers are provided for exceptions 1-6, 11-12, and 14-15.
The table here identifies the handlers used for each exception. The table here identifies the handlers used for each exception.
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| Exc# | Name | Remarks | Used by Zephyr Kernel | | Exc# | Name | Remarks | Used by Zephyr Kernel |
+======+============+================+==========================+ +======+============+================+=======================+
| 1 | Reset | | system initialization | | 1 | Reset | | system initialization |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 2 | NMI | | system fatal error | | 2 | NMI | | system fatal error |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 3 | Hard fault | | system fatal error | | 3 | Hard fault | | system fatal error |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 4 | MemManage | MPU fault | system fatal error | | 4 | MemManage | MPU fault | system fatal error |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 5 | Bus | | system fatal error | | 5 | Bus | | system fatal error |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 6 | Usage | undefined | system fatal error | | 6 | Usage | undefined | system fatal error |
| | fault | instruction, | | | | fault | instruction, | |
| | | or switch | | | | | or switch | |
| | | attempt to ARM | | | | | attempt to ARM | |
| | | mode | | | | | mode | |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 11 | SVC | | context switch and | | 11 | SVC | | context switch and |
| | | | software interrupts | | | | | software interrupts |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 12 | Debug | | system fatal error | | 12 | Debug | | system fatal error |
| | monitor | | | | | monitor | | |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 14 | PendSV | | context switch | | 14 | PendSV | | context switch |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
| 15 | SYSTICK | | system clock | | 15 | SYSTICK | | system clock |
+------+------------+----------------+--------------------------+ +------+------------+----------------+-----------------------+
.. note:: .. note::
After a reset, all exceptions have a priority of 0. Interrupts cannot run After a reset, all exceptions have a priority of 0. Interrupts cannot run
@ -126,20 +126,20 @@ 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/hello_world/nanokernel`. 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/hello_world/nanokernel ARCH=arm BOARD=arduino_due $ make -C samples/hello_world/nanokernel 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.
# Press the Erase button for more than 220 ms. #. Press the Erase button for more than 220 ms.
# Press the Reset button so the board will boot into the SAM-BA bootloader. #. Press the Reset button so the board will boot into the SAM-BA bootloader.
# To flash the kernel onto Arduino Due, assuming the bossa tool already #. To flash the kernel onto Arduino Due, assuming the bossa tool already
exists. Using the command line version of bossa, enter: exists. Using the command line version of bossa, enter:
.. code-block:: console .. code-block:: console
@ -149,10 +149,10 @@ be found in :file:`$ZEPHYR_BASE/samples/hello_world/nanokernel`.
Where :code:`<tty_device>` is where the Arduino Due can be found. For Where :code:`<tty_device>` is where the Arduino Due can be found. For
example, under Linux, :code:`<tty_device>` should be :code:`/dev/ttyACM0`. example, under Linux, :code:`<tty_device>` should be :code:`/dev/ttyACM0`.
# Run your favorite terminal program to listen for output. For example, under #. Run your favorite terminal program to listen for output. For example, under
Linux, the terminal should be :code:`/dev/ttyACM0`. Linux, the terminal should be :code:`/dev/ttyACM0`.
# Press the Reset button and you should see "Hello World!" in your terminal. #. Press the Reset button and you should see "Hello World!" in your terminal.
.. note:: .. note::
Make sure your terminal program is closed before flashing the binary image, Make sure your terminal program is closed before flashing the binary image,