Skip to content

Commit df294e3

Browse files
kartbenmmahadevan108
authored andcommitted
doc: sphinx-lint: fix bad usage of "default role"
Fixes bad usage of single backticks in lieu of double backticks for rendering inline literals, or simple '*' for italics. When appropriate, a better construct than double backticks has been selected (ex. :file:, :kconfig:option:, :c:func:, ...), or proper :ref: have been used if the original intention was to have a link. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 49bd808 commit df294e3

File tree

127 files changed

+304
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+304
-285
lines changed

boards/adafruit/feather_nrf52840/doc/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ but does not support debugging the device.
181181
#. If using UF2, connect the board to your host computer using USB.
182182

183183
#. Tap the reset button twice quickly to enter bootloader mode.
184-
A mass storage device named `FTHR840BOOT` for (Express) or
185-
`FTHRSNSBOOT` (Sense) should appear on the host. Ensure this is
184+
A mass storage device named ``FTHR840BOOT`` for (Express) or
185+
``FTHRSNSBOOT`` (Sense) should appear on the host. Ensure this is
186186
mounted.
187187

188188
#. Flash the image.

boards/adafruit/kb2040/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Using UF2
117117

118118
Since it doesn't expose the SWD pins, you must flash the Adafruit KB2040 with
119119
a UF2 file. By default, building an app for this board will generate a
120-
`build/zephyr/zephyr.uf2` file. If the KB2040 is powered on with the `BOOTSEL`
120+
:file:`build/zephyr/zephyr.uf2` file. If the KB2040 is powered on with the ``BOOTSEL``
121121
button pressed, it will appear on the host as a mass storage device. The
122122
UF2 file should be drag-and-dropped to the device, which will flash the KB2040.
123123

boards/adafruit/qt_py_rp2040/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Using UF2
116116

117117
Since it doesn't expose the SWD pins, you must flash the Adafruit QT Py RP2040 with
118118
a UF2 file. By default, building an app for this board will generate a
119-
`build/zephyr/zephyr.uf2` file. If the QT Py RP2040 is powered on with the `BOOTSEL`
119+
:file:`build/zephyr/zephyr.uf2` file. If the QT Py RP2040 is powered on with the ``BOOTSEL``
120120
button pressed, it will appear on the host as a mass storage device. The
121121
UF2 file should be drag-and-dropped to the device, which will flash the QT Py RP2040.
122122

boards/ambiq/apollo3_evb/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Build the Zephyr kernel and application, then flash it to the device:
6969
:goals: flash
7070

7171
.. note::
72-
`west flash` requires `SEGGER J-Link software`_ and `pylink`_ Python module
72+
``west flash`` requires `SEGGER J-Link software`_ and `pylink`_ Python module
7373
to be installed on you host computer.
7474

7575
Open a serial terminal (minicom, putty, etc.) with the following settings:

boards/ambiq/apollo3p_evb/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Build the Zephyr kernel and application, then flash it to the device:
6969
:goals: flash
7070

7171
.. note::
72-
`west flash` requires `SEGGER J-Link software`_ and `pylink`_ Python module
72+
``west flash`` requires `SEGGER J-Link software`_ and `pylink`_ Python module
7373
to be installed on you host computer.
7474

7575
Open a serial terminal (minicom, putty, etc.) with the following settings:

boards/ambiq/apollo4p_blue_kxr_evb/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Build the Zephyr kernel and application, then flash it to the device:
7777
:goals: flash
7878

7979
.. note::
80-
`west flash` requires `SEGGER J-Link software`_ and `pylink`_ Python module
80+
``west flash`` requires `SEGGER J-Link software`_ and `pylink`_ Python module
8181
to be installed on you host computer.
8282

8383
Open a serial terminal (minicom, putty, etc.) with the following settings:

boards/ambiq/apollo4p_evb/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Build the Zephyr kernel and application, then flash it to the device:
7272
:goals: flash
7373

7474
.. note::
75-
`west flash` requires `SEGGER J-Link software`_ and `pylink`_ Python module
75+
``west flash`` requires `SEGGER J-Link software`_ and `pylink`_ Python module
7676
to be installed on you host computer.
7777

7878
Open a serial terminal (minicom, putty, etc.) with the following settings:

boards/arduino/nano_33_ble/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ That license ties to Arduino Nano 33 BLE hardware serial number,
160160
it also works with the ZephyrRTOS.
161161

162162
Follow the instruction of the tutorial for Arduino
163-
`Lauterbach TRACE32 GDB Front-End Debugger for Nano 33 BLE`
163+
`Lauterbach TRACE32 GDB Front-End Debugger for Nano 33 BLE`_
164164
to install the TRACE32.
165165

166166
After installing the TRACE32, You should set the environmental variable ``T32_DIR``.

boards/arm/fvp_base_revc_2xaemv8a/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Checkout and Build the TF-A:
9999
cd trusted-firmware-a/
100100
make PLAT=fvp PRELOADED_BL33_BASE="0x88000000" all fip
101101
102-
then export the ``ARMFVP_BL1_FILE` and ``ARMFVP_FIP_FILE`` environment variables:
102+
then export the :envvar:`ARMFVP_BL1_FILE` and :envvar:`ARMFVP_FIP_FILE` environment variables:
103103

104104
.. code-block:: console
105105

boards/circuitdojo/feather/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ or Nordic based examples.
100100
Trusted Firmware-M (TF-M) and building the ``ns`` target is not supported for this board.
101101

102102
Some of the examples do not use secure mode, so they do not require the
103-
``ns`` suffix. A great example of this is the `hello_world` below.
103+
``ns`` suffix. A great example of this is the ``hello_world`` below.
104104

105105
Flashing
106106
========

boards/ct/ctcc/doc/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ As an example we'll use the :zephyr:code-sample:`usb-cdc-acm-console` sample.
172172

173173
.. note::
174174

175-
In all examples it is assumed to use default `root-rsa-2048.pem` file from ``mcuboot/boot``
175+
In all examples it is assumed to use default :file:`root-rsa-2048.pem` file from ``mcuboot/boot``
176176
directory. Providing certificate in build args produces signed binary automatically.
177177
Do not use this certificate in your production firmware!
178178

179179
#. Plug in ``ctcc/nrf52840`` card to mPCIe/M.2 slot or use mPCIe/M.2 adapter to USB
180180
and plug such adapter to USB port.
181181

182182
You should see ``NordicSemiconductor MCUBOOT`` or ``NordicSemiconductor Zephyr DFU sample``
183-
(if you flashed `dfu` sample to slot0) device once plugging it into host
183+
(if you flashed ``dfu`` sample to slot0) device once plugging it into host
184184
USB port. You can check that on Linux system by entering ``lsusb`` command.
185185

186186
To check if DFU device is visible you can enter ``sudo dfu-util -l`` command. Once the

boards/enjoydigital/litex_vexriscv/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Use `ecpprog <https://github.com/gregdavill/ecpprog>`_ to upload the bitstream t
184184
185185
ecpprog -S antmicro_sdi_mipi_video_converter.bit
186186
187-
You can boot from a serial port using litex_term (replace `ttyUSBX` with your device) , e.g.:
187+
You can boot from a serial port using litex_term (replace ``ttyUSBX`` with your device) , e.g.:
188188

189189
.. code-block:: bash
190190

boards/intel/rpl/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ please refer to `RPL`_.
2323

2424
Raptor Lake Customer Reference Board (RPL CRB) is an example implementation of a
2525
compact single board computer with high performance for IoT edge devices. The
26-
supported boards are `intel_rpl_s_crb` and `intel_rpl_p_crb`.
26+
supported boards are ``intel_rpl_s_crb`` and ``intel_rpl_p_crb``.
2727

2828
These board configurations enable kernel support for the supported Raptor Lake
2929
boards.

boards/intel/socfpga/agilex5_socdk/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ hardware features:
4545
NOTE: TODO, more details on dev kit will be updated as and when available.
4646

4747
The default configuration can be found in the defconfig file:
48-
`boards/intel/socfpga/agilex5_socdk/intel_socfpga_agilex5_socdk_defconfig`
48+
:zephyr_file:`boards/intel/socfpga/agilex5_socdk/intel_socfpga_agilex5_socdk_defconfig`.
4949

5050
Programming and Debugging
5151
*************************

boards/m5stack/m5stack_core2/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ of the M5Stack Core2 board.
7979
| MPU6886 | combines a 3-axis gyroscope and a 3-axis accelerometer. | |
8080
| | For details please refer to :ref:`m5stack_core2_ext` | |
8181
+------------------+--------------------------------------------------------------------------+-----------+
82-
| Grove port | Note: Grove port requires 5V to be enabled via `bus_5v` regulator | supported |
82+
| Grove port | Note: Grove port requires 5V to be enabled via ``bus_5v`` regulator | supported |
8383
+------------------+--------------------------------------------------------------------------+-----------+
8484
| Built-in | The `SPM-1423`_ I2S driven microphone. | todo |
8585
| microphone | | |

boards/native/doc/arch_soc.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Currently, these are the most significant features which are not supported in th
183183
* Stack checks: :kconfig:option:`CONFIG_HW_STACK_PROTECTION`,
184184
:kconfig:option:`CONFIG_STACK_CANARIES`, and
185185
:kconfig:option:`CONFIG_THREAD_ANALYZER`.
186-
This is due to how Zephyr allocated threads' stacks are not `actually` being used like they are
186+
This is due to how Zephyr allocated threads' stacks are not *actually* being used like they are
187187
in other architectures. Check
188188
:ref:`the architecture section's architecture layer paragraph <posix_arch_design_archl>`
189189
for more information.
@@ -355,7 +355,7 @@ while this newly created thread will be the first "SW" thread and start
355355
executing the boot of the embedded code (including the POSIX arch code).
356356

357357
During this MCU boot process, the Zephyr kernel will be initialized and
358-
eventually this will call into the embedded application `main()`,
358+
eventually this will call into the embedded application ``main()``,
359359
just like in the embedded target.
360360
As the embedded SW execution progresses, more Zephyr threads may be spawned,
361361
and for each the POSIX architecture will create a dedicated pthread.
@@ -413,7 +413,7 @@ Busy waits
413413
Busy waits work thanks to provided board functionality.
414414
This does not need to be the same for all boards, but both native_sim and the
415415
nrf52_bsim board work similarly thru the combination of a board specific
416-
`arch_busy_wait()` and a special fake HW timer (provided by the board).
416+
:c:func:`arch_busy_wait()` and a special fake HW timer (provided by the board).
417417

418418
When a SW thread wants to busy wait, this fake timer will be programmed in
419419
the future time corresponding to the end of the busy wait and the CPU will
@@ -422,7 +422,7 @@ When this fake HW timer expires the CPU will be waken with a special
422422
non-maskable phony interrupt which does not have a corresponding interrupt
423423
handler but will resume the busy_wait SW execution.
424424
Note that other interrupts may arrive while the busy wait is in progress,
425-
which may delay the `k_busy_wait()` return just like in real life.
425+
which may delay the :c:func:`k_busy_wait()` return just like in real life.
426426

427427
Interrupts may be locked out or masked during this time, but the special
428428
fake-timer non-maskable interrupt will wake the CPU nonetheless.

boards/native/doc/bsim_boards_design.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Bsim boards
1616

1717
This page covers the design, architecture and rationale, of the
1818
nrf5x_bsim boards and other similar bsim boards.
19-
These boards are postfixed with `_bsim` as they use BabbleSim_
19+
These boards are postfixed with ``_bsim`` as they use BabbleSim_
2020
(shortened bsim), to simulate the radio environment.
2121
These boards use the `native simulator`_ and the :ref:`POSIX architecture<Posix arch>` to build
2222
and execute the embedded code natively on Linux.
@@ -135,27 +135,27 @@ The basic architecture layering of these boards is as follows:
135135
simulation specific ones.
136136
- The architecture (arch) is the Zephyr :ref:`POSIX architecture<Posix arch>`
137137
layer.
138-
The SOC layer is `inf_clock`. And the board layer is dependent on
138+
The SOC layer is ``inf_clock``. And the board layer is dependent on
139139
the specific device we are simulating.
140140
- The POSIX architecture provides an adaptation from the Zephyr arch API
141141
(which handles mostly the thread context switching) to the native simulator
142142
CPU thread emulation.
143143
See :ref:`POSIX arch architecture<posix_arch_architecture>`
144-
- The SOC `inf_clock` layer provides an adaptation to the native simulator CPU "simulation"
144+
- The SOC ``inf_clock`` layer provides an adaptation to the native simulator CPU "simulation"
145145
and the handling of control between the "CPU simulation" (Zephyr threads) and the
146146
HW models thread ( See `Threading`_ ).
147147
- The board layer provides all SOC/ IC specific content, including
148148
selecting the HW models which are built in the native simulator runner context, IRQ handling,
149149
busy wait API (see :ref:`posix_busy_wait<posix_busy_wait>`), and Zephyr's printk backend.
150150
Note that in a normal Zephyr target interrupt handling and a custom busy wait
151151
would be provided by the SOC layer, but abusing Zephyr's layering, and for the
152-
`inf_clock` layer to be generic, these were delegated to the board.
152+
``inf_clock`` layer to be generic, these were delegated to the board.
153153
The board layer provides other test specific
154154
functionality like bs_tests hooks, trace control, etc, and
155155
by means of the native simulator, provides the :c:func:`main` entry point for the Linux
156156
program, command line argument handling, and the overall time scheduling of
157157
the simulated device.
158-
Note that the POSIX arch and `inf_clock` soc expect a set of APIs being provided by
158+
Note that the POSIX arch and ``inf_clock`` soc expect a set of APIs being provided by
159159
the board. This includes the busy wait API, a basic tracing API, the interrupt
160160
controller and interrupt handling APIs, :c:func:`posix_exit`,
161161
and :c:func:`posix_get_hw_cycle` (see :file:`posix_board_if.h` and :file:`posix_soc_if.h`).
@@ -173,7 +173,7 @@ Important limitations and unsupported features
173173

174174
All native and bsim boards share the same set of
175175
:ref:`important limitations which<posix_arch_limitations>`
176-
are inherited from the POSIX arch and `inf_clock` design.
176+
are inherited from the POSIX arch and ``inf_clock`` design.
177177

178178
Similarly, they inherit the POSIX architecture
179179
:ref:`unsupported features set <posix_arch_unsupported>`.
@@ -261,7 +261,7 @@ posix_print and nsi_print backends
261261
==================================
262262

263263
The bsim board provides a backend for the ``posix_print`` API which is expected by the posix
264-
ARCH and `inf_clock` code, and for the ``nsi_print`` API expected by the native simulator.
264+
ARCH and ``inf_clock`` code, and for the ``nsi_print`` API expected by the native simulator.
265265

266266
These simply route this API calls into the ``bs_trace`` bsim API.
267267
Any message printed to these APIs, and by extension by default to Zephyr's ``printk``,
@@ -287,12 +287,12 @@ callbacks are assigned to the respective hooks.
287287
There is a set of one time hooks at different levels of initialization of the HW
288288
and Zephyr OS, a hook to process possible command line arguments, and, a hook
289289
that can be used to sniff or capture interrupts.
290-
`bs_tests` also provides a hook which will be called from the embedded application
290+
``bs_tests`` also provides a hook which will be called from the embedded application
291291
:c:func:`main`, but this will only work if the main application supports it,
292292
that is, if the main app is a version for simulation which calls
293293
:c:func:`bst_main` when running in the bsim board.
294294

295-
Apart from these hooks, the `bs_tests` system provides facilities to build a
295+
Apart from these hooks, the ``bs_tests`` system provides facilities to build a
296296
dedicated test "task". This will be executed in the HW models thread context,
297297
but will have access to all SW variables. This task will be driven with a
298298
special timer which can be configured to produce either periodic or one time
@@ -302,15 +302,15 @@ at specific points in time. This can be combined with Babblesim's tb_defs macros
302302
to build quite complex test tasks which can wait for a given amount of time,
303303
for conditions to be fulfilled, etc.
304304

305-
Note when writing the tests with `bs_tests` one needs to be aware that other
305+
Note when writing the tests with ``bs_tests`` one needs to be aware that other
306306
bs tests will probably be built with the same application, and that therefore
307307
the tests should not be registering initialization or callback functions using
308308
NATIVE_TASKS or Zephyr's PRE/POST kernel driver initialization APIs as this
309309
will execute even if the test is not selected.
310-
Instead the equivalent `bs_tests` provided hooks should be used.
310+
Instead the equivalent ``bs_tests`` provided hooks should be used.
311311

312312
Note also that, for AMP targets like the :ref:`nrf5340bsim <nrf5340bsim>`, each embedded MCU has
313-
its own separate `bs_tests` built with that MCU. You can select if and what test is used
313+
its own separate ``bs_tests`` built with that MCU. You can select if and what test is used
314314
for each MCU separatedly with the command line options.
315315

316316
Command line argument parsing

boards/nxp/lpcxpresso54114/doc/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ features:
7474

7575
The default configuration for each core can be found in the defconfig files:
7676

77-
`boards/nxp/lpcxpresso54114/lpcxpresso54114_lpc54114_m4_defconfig`
78-
`boards/nxp/lpcxpresso54114/lpcxpresso54114_lpc54114_m0_defconfig`
77+
- :zephyr_file:`boards/nxp/lpcxpresso54114/lpcxpresso54114_lpc54114_m4_defconfig`
78+
- :zephyr_file:`boards/nxp/lpcxpresso54114/lpcxpresso54114_lpc54114_m0_defconfig`
7979

8080
Other hardware features are not currently supported by the port.
8181

boards/nxp/lpcxpresso55s69/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ board.
299299
-----------------------------------------
300300

301301
1. Install the :ref:`linkserver-debug-host-tools` and make sure they are in your search path.
302-
2. To update the debug firmware, please follow the instructions on `LPCXPRESSO55S69 Debug Firmware`
302+
2. To update the debug firmware, please follow the instructions on `LPCXPRESSO55S69 Debug Firmware`_
303303

304304
:ref:`opensda-daplink-onboard-debug-probe`
305305
------------------------------------------

boards/nxp/mimxrt1040_evk/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Remove resistors from R497, R498, R456 and R457.
335335

336336
And due to pin conflict issue, the PCM interface of Bluetooth module cannot be supported.
337337

338-
For the debugger fails to connect with the following error, please refer to section `WiFi Module`.
338+
For the debugger fails to connect with the following error, please refer to the next section.
339339

340340
WiFi Module
341341
-----------

boards/nxp/mimxrt1170_evk/doc/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ NXP considers the MIMXRT1170-EVK as the superset board for the i.MX RT11xx
111111
family of MCUs. This board is a focus for NXP's Full Platform Support for
112112
Zephyr, to better enable the entire RT11xx family. NXP prioritizes enabling
113113
this board with new support for Zephyr features. Note that this table
114-
covers two boards: the RT1170 EVK (`mimxrt1170_evk//cm7/cm4`), and
115-
RT1170 EVKB (`mimxrt1170_evk@B//cm7/cm4`)
114+
covers two boards: the RT1170 EVK (``mimxrt1170_evk//cm7/cm4``), and
115+
RT1170 EVKB (``mimxrt1170_evk@B//cm7/cm4``)
116116

117117
+-----------+------------+-------------------------------------+-----------------+-----------------+
118118
| Interface | Controller | Driver/Component | RT1170 EVK | RT1170 EVKB |
@@ -478,4 +478,4 @@ ENET1G Driver
478478

479479
Current default of ethernet driver is to use 100M Ethernet instance ENET.
480480
To use the 1G Ethernet instance ENET1G, include the overlay to west build with
481-
the option `-DEXTRA_DTC_OVERLAY_FILE=nxp,enet1g.overlay` instead.
481+
the option ``-DEXTRA_DTC_OVERLAY_FILE=nxp,enet1g.overlay`` instead.

boards/nxp/rd_rw612_bga/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Remove resistors:
196196
- R508
197197
- R505
198198

199-
Then, build for the board target `rd_rw612_bga//ethernet`.
199+
Then, build for the board target ``rd_rw612_bga//ethernet``.
200200

201201
Resources
202202
*********

boards/nxp/s32z2xxdc2/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Serial Port
118118
===========
119119

120120
The SoC has 12 LINFlexD instances that can be used in UART mode. The console can
121-
be accessed by default on the USB micro-B connector `J119`.
121+
be accessed by default on the USB micro-B connector J119.
122122

123123
Watchdog
124124
========

boards/phytec/phyboard_electra/doc/index.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ GPIO
8484
----
8585

8686
The phyCORE-AM64x has a heartbeat LED connected to gpio6. It's configured
87-
to build and run the `basic/blinky` sample.
87+
to build and run the :zephyr:code-sample:`blinky` sample.
8888

8989
SD Card
9090
*******
@@ -111,9 +111,11 @@ To test the M4F core, we build the :ref:`hello_world` sample with the following
111111
:zephyr-app: samples/hello_world
112112
:goals: build
113113

114-
This builds the program and the binary is present in the `build/zephyr` directory as `zephyr.elf`.
114+
This builds the program and the binary is present in the :file:`build/zephyr` directory as
115+
:file:`zephyr.elf`.
115116

116-
We now copy this binary onto the SD card in the `/lib/firmware` directory and name it as `am64-mcu-m4f0_0-fw`.
117+
We now copy this binary onto the SD card in the :file:`/lib/firmware` directory and name it as
118+
:file:`am64-mcu-m4f0_0-fw`.
117119

118120
.. code-block:: console
119121

0 commit comments

Comments
 (0)