doc: boards: Set proper languages for syntax highlighting
Make sure devicetree, kconfig, etc. code snippets all have proper pygments language set. Note: only existing code-block:: directives have been updated. Another pass should be made to address implicit code-blocks (`::`) Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
57c17da528
commit
90c4498ca1
9 changed files with 17 additions and 13 deletions
|
@ -172,7 +172,7 @@ Prerequisites:
|
||||||
to the paths of the OpenOCD binary and its scripts, before
|
to the paths of the OpenOCD binary and its scripts, before
|
||||||
including the common openocd.board.cmake file:
|
including the common openocd.board.cmake file:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: cmake
|
||||||
|
|
||||||
set(OPENOCD "/usr/local/bin/openocd" CACHE FILEPATH "" FORCE)
|
set(OPENOCD "/usr/local/bin/openocd" CACHE FILEPATH "" FORCE)
|
||||||
set(OPENOCD_DEFAULT_PATH /usr/local/share/openocd/scripts)
|
set(OPENOCD_DEFAULT_PATH /usr/local/share/openocd/scripts)
|
||||||
|
|
|
@ -172,7 +172,7 @@ Prerequisites:
|
||||||
to the paths of the OpenOCD binary and its scripts, before
|
to the paths of the OpenOCD binary and its scripts, before
|
||||||
including the common openocd.board.cmake file:
|
including the common openocd.board.cmake file:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: cmake
|
||||||
|
|
||||||
set(OPENOCD "/usr/local/bin/openocd" CACHE FILEPATH "" FORCE)
|
set(OPENOCD "/usr/local/bin/openocd" CACHE FILEPATH "" FORCE)
|
||||||
set(OPENOCD_DEFAULT_PATH /usr/local/share/openocd/scripts)
|
set(OPENOCD_DEFAULT_PATH /usr/local/share/openocd/scripts)
|
||||||
|
|
|
@ -436,9 +436,9 @@ Board Revisions
|
||||||
***************
|
***************
|
||||||
|
|
||||||
The original MIMXRT1050-EVK (rev A0) board was updated with a newer
|
The original MIMXRT1050-EVK (rev A0) board was updated with a newer
|
||||||
MIMXRT1050-EVKB (rev A1) board, with these major hardware differences::
|
MIMXRT1050-EVKB (rev A1) board, with these major hardware differences:
|
||||||
|
|
||||||
- SoC changed from MIMXRT1052DVL6**A** to MIMXRT1052DVL6**B**
|
- SoC changed from MIMXRT1052DVL6\ **A** to MIMXRT1052DVL6\ **B**
|
||||||
- Hardware bug fixes for: power, interfaces, and memory
|
- Hardware bug fixes for: power, interfaces, and memory
|
||||||
- Arduino headers included
|
- Arduino headers included
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ Prerequisites:
|
||||||
to the paths of the OpenOCD binary and its scripts, before
|
to the paths of the OpenOCD binary and its scripts, before
|
||||||
including the common openocd.board.cmake file:
|
including the common openocd.board.cmake file:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: cmake
|
||||||
|
|
||||||
set(OPENOCD "/usr/local/bin/openocd" CACHE FILEPATH "" FORCE)
|
set(OPENOCD "/usr/local/bin/openocd" CACHE FILEPATH "" FORCE)
|
||||||
set(OPENOCD_DEFAULT_PATH /usr/local/share/openocd/scripts)
|
set(OPENOCD_DEFAULT_PATH /usr/local/share/openocd/scripts)
|
||||||
|
|
|
@ -228,7 +228,7 @@ P0.17, P0.18, and P0.19 so that they are routed to nRF52840 pins P0.17, P0.20,
|
||||||
and P0.15, respectively, add the following in the devicetree overlay in your
|
and P0.15, respectively, add the following in the devicetree overlay in your
|
||||||
application:
|
application:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: devicetree
|
||||||
|
|
||||||
&nrf_interface_pins_0_2_routing {
|
&nrf_interface_pins_0_2_routing {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
@ -237,7 +237,7 @@ application:
|
||||||
And if you want to, for example, disable routing for the VCOM2 pins, add the
|
And if you want to, for example, disable routing for the VCOM2 pins, add the
|
||||||
following:
|
following:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: devicetree
|
||||||
|
|
||||||
&vcom2_pins_routing {
|
&vcom2_pins_routing {
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
|
@ -252,7 +252,7 @@ configure the signal routing between nRF9160 and nRF52840 on the nRF9160 DK.
|
||||||
For example, to use ``uart1`` on both these chips for communication between
|
For example, to use ``uart1`` on both these chips for communication between
|
||||||
them, add the following line in the overlays for applications on both sides:
|
them, add the following line in the overlays for applications on both sides:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: devicetree
|
||||||
|
|
||||||
#include <nrf9160dk_uart1_on_if0_3.dtsi>
|
#include <nrf9160dk_uart1_on_if0_3.dtsi>
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ In order to support FXOS8700 triggers (interrupts) the 0 ohm resistors
|
||||||
devicetree must also be modified to describe the FXOS8700 interrupt
|
devicetree must also be modified to describe the FXOS8700 interrupt
|
||||||
GPIOs:
|
GPIOs:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: devicetree
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
|
|
|
@ -498,7 +498,7 @@ first make sure you're booting the right core.
|
||||||
|
|
||||||
The output should look like this:
|
The output should look like this:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: console
|
||||||
|
|
||||||
$ ~/rv32m1-openocd -f boards/riscv/rv32m1_vega/support/openocd_rv32m1_vega_ri5cy.cfg
|
$ ~/rv32m1-openocd -f boards/riscv/rv32m1_vega/support/openocd_rv32m1_vega_ri5cy.cfg
|
||||||
Open On-Chip Debugger 0.10.0+dev-00431-ge1ec3c7d (2018-10-31-07:29)
|
Open On-Chip Debugger 0.10.0+dev-00431-ge1ec3c7d (2018-10-31-07:29)
|
||||||
|
|
|
@ -85,7 +85,7 @@ build command:
|
||||||
|
|
||||||
Alternatively, set use of this shield in the project's ``CMakeLists.txt`` file:
|
Alternatively, set use of this shield in the project's ``CMakeLists.txt`` file:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: cmake
|
||||||
|
|
||||||
set(SHIELD x_nucleo_idb05a1)
|
set(SHIELD x_nucleo_idb05a1)
|
||||||
|
|
||||||
|
|
|
@ -581,7 +581,9 @@ You can debug an application in the usual way. Here is an example for the :ref:`
|
||||||
Enabling Ethernet
|
Enabling Ethernet
|
||||||
*****************
|
*****************
|
||||||
|
|
||||||
Enable Ethernet MAC, PHY and MDIO; add these to your device tree overlay::
|
Enable Ethernet MAC, PHY and MDIO; add these to your device tree overlay:
|
||||||
|
|
||||||
|
.. code-block:: devicetree
|
||||||
|
|
||||||
ð {
|
ð {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
@ -595,7 +597,9 @@ Enable Ethernet MAC, PHY and MDIO; add these to your device tree overlay::
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
Enable Ethernet in KConfig::
|
Enable Ethernet in KConfig:
|
||||||
|
|
||||||
|
.. code-block:: cfg
|
||||||
|
|
||||||
CONFIG_ETH_ESP32=y
|
CONFIG_ETH_ESP32=y
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue