Skip to content

Commit d781d86

Browse files
authored
Merge pull request #22257 from LasseRosenow/fix-doc-links
treewide: Fix links in the docs and cleanup many boards
2 parents 679df05 + a4d7564 commit d781d86

222 files changed

Lines changed: 2507 additions & 3186 deletions

File tree

Some content is hidden

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

boards/adafruit-clue/doc.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The STDIO is directly accessible via the USB port. On a Linux host, it's
2929
generally mapped to `/dev/ttyACM0`.
3030

3131
Use the `term` target to connect to the board serial port<br/>
32-
```
33-
make BOARD=adafruit-clue -C examples/basic/hello-world term
32+
33+
```shell
34+
make BOARD=adafruit-clue -C examples/basic/hello-world term
3435
```

boards/adafruit-feather-nrf52840-express/doc.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,30 @@ Flashing the Feather nRF52840 is described in the
1919
common [Adafruit nRF52 Bootloader](@ref boards_common_adafruit-nrf52-bootloader) section.
2020

2121
Example with `hello-world` application:
22-
```sh
22+
23+
```shell
2324
make BOARD=adafruit-feather-nrf52840-express -C examples/basic/hello-world flash
2425
```
2526

2627
### Terminal
28+
2729
To connect a terminal to the Feather, RIOT chooses `stdio_cdc_acm` per default.
2830
This lets you access the Feather directly over USB.
2931

3032
You have several alternative possibilities to connect to the board.
3133

3234
1. With
35+
3336
```makefile
3437
USEMODULE += stdio_uart
3538
```
39+
3640
and an FTDI adapter connected to the Feather's RX and TX ports you can use
3741
UART-based terminals to connect to the feather
3842
2. With
43+
3944
```makefile
4045
USEMODULE += stdio_rtt
4146
```
47+
4248
you can use the Segger J-Link Programmer as a serial interface to the device.

boards/adafruit-feather-nrf52840-sense/doc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Details to the Flashing process can be found in the common
2525
Both use the same flasher, bootloader, and terminal settings.
2626

2727
Example with `hello-world` application:
28-
```sh
28+
29+
```shell
2930
make BOARD=adafruit-feather-nrf52840-sense -C examples/basic/hello-world flash term
3031
```

boards/adafruit-grand-central-m4-express/doc.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@ingroup boards
33
@brief Support for the Adafruit Grand Central M4 Express
44

5-
General information
6-
===================
5+
## General information
76

8-
@image html https://cdn-learn.adafruit.com/assets/assets/000/068/748/medium800/adafruit_products_grand_central_top_angle.jpg "Picture of the Adafruit Grand Central M4 Express"
7+
<img src="https://cdn-learn.adafruit.com/assets/assets/000/068/748/medium800/adafruit_products_grand_central_top_angle.jpg" alt="Picture of the Adafruit Grand Central M4 Express" />
98

109
The main features of the board are:
10+
1111
- ATSAMD51 Cortex M4 running at 120 MHz
1212
- Hardware DSP and floating point support
1313
- 1 MiB Flash
@@ -17,19 +17,16 @@ The main features of the board are:
1717
- Micro SD Card slot connected to SPI
1818
- native USB
1919

20-
Pinout
21-
------
20+
### Pinout
2221

23-
@image html https://cdn-learn.adafruit.com/assets/assets/000/115/366/original/adafruit_products_Adafruit-Grand-Central-M4-Express-Pinout.png "Official Pinout of the Grand Central M4 Express"
22+
<img src="https://cdn-learn.adafruit.com/assets/assets/000/115/366/original/adafruit_products_Adafruit-Grand-Central-M4-Express-Pinout.png" alt="Official Pinout of the Grand Central M4 Express" />
2423

25-
Links
26-
=====
24+
## Links
2725

2826
- [Overview](https://learn.adafruit.com/adafruit-grand-central)
2927
- [Schematics](https://learn.adafruit.com/assets/69175)
3028

31-
Flash the board
32-
===============
29+
## Flash the board
3330

3431
The board is flashed using its on-board
3532
[boot loader](https://github.com/adafruit/uf2-samdx1).

boards/adafruit-metro-m4-express/doc.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@ingroup boards
33
@brief Support for the Adafruit Metro M4 Express
44

5-
General information
6-
===================
5+
## General information
76

8-
@image html https://cdn-learn.adafruit.com/assets/assets/000/085/521/large1024/adafruit_products_metro-m4-top.jpg "Picture of the Adafruit Metro M4 Express"
7+
<img src="https://cdn-learn.adafruit.com/assets/assets/000/085/521/large1024/adafruit_products_metro-m4-top.jpg" alt="Picture of the Adafruit Metro M4 Express" />
98

109
The main features of the board are:
10+
1111
- ATSAMD51 Cortex M4 running at 120 MHz
1212
- Hardware DSP and floating point support
1313
- 512 MiB Flash
@@ -17,23 +17,19 @@ The main features of the board are:
1717
- 32-bit, 3.3V logic and power
1818
- native USB
1919

20-
Pinout
21-
------
20+
### Pinout
2221

23-
@image html https://cdn-learn.adafruit.com/assets/assets/000/111/183/original/adafruit_products_Adafruit_Metro_M4_Express_Pinout.png "Official Pinout of the Metro M4 Express" width=100%
22+
<img src="https://cdn-learn.adafruit.com/assets/assets/000/111/183/original/adafruit_products_Adafruit_Metro_M4_Express_Pinout.png" alt="Official Pinout of the Metro M4 Express" width=100% />
2423

25-
Links
26-
=====
24+
## Links
2725

2826
- [Official Board Documentation](https://learn.adafruit.com/adafruit-metro-m4-express-featuring-atsamd51)
2927

30-
Schematics
31-
==========
28+
## Schematics
3229

33-
@image html https://cdn-learn.adafruit.com/assets/assets/000/053/093/original/adafruit_products_schem.png "Original Board Schematics"
30+
<img src="https://cdn-learn.adafruit.com/assets/assets/000/053/093/original/adafruit_products_schem.png" alt="Original Board Schematics" />
3431

35-
Arduino Compatibility
36-
=====================
32+
## Arduino Compatibility
3733

3834
The board is compatible with Shields for the Arduino UNO / Arduino Zero.
3935

@@ -43,8 +39,7 @@ The board is compatible with Shields for the Arduino UNO / Arduino Zero.
4339
resorting to desperate means such as bit-banging either the SPI bus
4440
or the UART interface.
4541

46-
Flash the board
47-
===============
42+
## Flash the board
4843

4944
The board is flashed using its on-board
5045
[boot loader](https://github.com/adafruit/uf2-samdx1).
@@ -61,8 +56,7 @@ Readiness of the bootloader is indicated by LED pulsing in red.
6156
@note You may need to pass `MOST_RECENT_PORT=0` and manually pass the `PORT`
6257
if you enter the bootloader by hand.
6358

64-
Accessing STDIO
65-
---------------
59+
### Accessing STDIO
6660

6761
The usual way to obtain a console on this board is using an emulated USB serial
6862
port.

boards/adafruit-pybadge/doc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The display, RGB LEDs, buttons and accelerometer of this board are currently not
1414
The [Adafruit PyBadge LC](https://www.adafruit.com/product/3939) and
1515
[Adafruit EdgeBadge](https://www.adafruit.com/product/4400)) are
1616
variants of the Pybadge with small differences:
17+
1718
- EdgeBadge provides an extra microphone (not supported)
1819
- PyBadgeLC only have one Neopixel LED (instead of 5)
1920
Both are compatible with the PyBadge RIOT port and the current port can easily
@@ -24,8 +25,9 @@ be adapted/extended with their respective differences.
2425
Connect the board via USB and use `BOARD=adafruit-pybadge` with the `make` command;
2526
this uses the Arduino style bootloader preprogrammed on the board.<br/>
2627
Example with `hello-world` application:
27-
```
28-
make BOARD=adafruit-pybadge -C examples/basic/hello-world flash
28+
29+
```shell
30+
make BOARD=adafruit-pybadge -C examples/basic/hello-world flash
2931
```
3032

3133
In case of a crash of the firmware, one has to manually reset the board in

boards/airfy-beacon/doc.md

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ registers. Just follow these steps:
5252
3. type `nrf51 mass_erase` to reset the code memory
5353
4. all done, `make flash` should now work as expected.
5454

55+
## Flashing and Debugging
5556

56-
## Flashing and Debugging
5757
The Airfy Beacon comes without any on-board programming and flashing
5858
capabilities. It supports however to be programmed using off-the-shelf
5959
programmers such as Segger's JLink or STM's STLink.
@@ -65,10 +65,12 @@ ST-Link adapter, you just simply have to alter the wiring to fit for your
6565
programmer, the software part is identical.
6666

6767
### Hardware
68+
6869
First of all make sure the your ST-Link device is detected and can be
6970
accessed properly. In Linux you might have to adept your `udev` rules
7071
accordingly:
71-
```
72+
73+
```text
7274
> cat 49-stlinkv2.rules
7375
# stm32 discovery boards, with onboard st/linkv2
7476
# ie, STM32L, STM32F4.
@@ -87,6 +89,7 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
8789
> sudo udevadm control --reload-rules
8890
> sudo udevadm trigger
8991
```
92+
9093
now replug the usb cable and flash.
9194

9295
Have a look at the 'Setting up udev rules' section in the
@@ -101,7 +104,8 @@ the port and enables direct access through the pin-header `CN3`, also labeled
101104
This module supports the Serial Wire Debug (SWD) interface. To access the
102105
device the following four lines need to be connected with the STM32x-discovery
103106
board:
104-
```
107+
108+
```text
105109
Airfy Beacon STM32Fx-discovery
106110
common ground: GND <-----------> GND
107111
supply voltage: VDD <-----------> 3V
@@ -114,6 +118,7 @@ The following image shows the wiring for an SWD flasher board:
114118
![airfy-beacon-flash-connect](https://raw.githubusercontent.com/wiki/RIOT-OS/RIOT/images/airfy-beacon-flash-connect.jpg)
115119

116120
### Software
121+
117122
Debugging and programming this module works well with
118123
[OpenOCD](http://openocd.org/).
119124

@@ -123,50 +128,61 @@ Version `Open On-Chip Debugger 0.9.0-dev-00184-g885f438 (2014-10-19-14:49)`
123128
is reported to work.
124129

125130
### Programming the Device
131+
126132
To program the Airfy Beacon, just go to your RIOT application and type:
133+
134+
```shell
135+
BOARD=airfy-beacon make flash
127136
```
128-
make flash
129-
```
137+
130138
and voila, the new firmware should be flashed onto your device.
131139

132140
### Resetting the Device
141+
133142
As the Airfy Beacon module does not provide a reset button, RIOT includes a
134143
target to reset the board. To do that, just type
144+
145+
```shell
146+
BOARD=airfy-beacon make reset
135147
```
136-
make reset
137-
```
148+
138149
and your board will reboot.
139150

140151
### Debugging the Device
152+
141153
The debugging setup comprises of two parts: a GDB server and a GDB client. To
142154
usual workflow is to start the GDB server first and then connect to it with some
143155
kind of front-end (e.g. command line, IDE, ...).
144156

145157
To start the GDB server, just type
158+
159+
```shell
160+
BOARD=airfy-beacon make debug-server
146161
```
147-
make debug-server
148-
```
162+
149163
This will start a local GDB server on `port 3333`.
150164

151165
If you are fine with working with the GDB command line client, you can start
152166
debugging your device by just typing
167+
168+
```shell
169+
BOARD=airfy-beacon make debug
153170
```
154-
make debug
155-
```
171+
156172
in a second terminal window. This will automatically connect to your
157173
previously opened GDB server and will also load your corresponding .elf file.
158174

159175
Alternatively you can configure your IDE (e.g. eclipse or similar) to connect
160176
directly to the GDB server. [See here for more information on how to configure
161-
Eclipse](https://github.com/RIOT-OS/RIOT/wiki/Using-the-Eclipse-IDE-for-C-and-
177+
Eclipse](<https://github.com/RIOT-OS/RIOT/wiki/Using-the-Eclipse-IDE-for-C-and->
162178
CPP-Developers,-Howto)
163179

164-
165180
### Program the device manually
181+
166182
For OpenOCD to work correctly, you need the following configuration file
167-
(which you can also find in `RIOTDIR/boards/airfy-beacon/dist/openocd.cfg`:
183+
(which you can also find in `RIOTDIR/boards/airfy-beacon/dist/openocd.cfg`):
168184

169-
```
185+
```text
170186
$ cat RIOTDIR/boards/airfy-beacon/openocd.cfg
171187
# nRF51822 Target
172188
source [find interface/stlink-v2.cfg]
@@ -188,7 +204,7 @@ beacon/dist/openocd.cfg`
188204
3. do the following steps to flash (only use bank #0 starting from address
189205
0):
190206

191-
```
207+
```text
192208
> flash banks
193209
#0 : nrf51.flash (nrf51) at 0x00000000, size 0x00040000, buswidth 1,
194210
chipwidth 1
@@ -213,7 +229,7 @@ First you have to start OpenOCD as described in the section above.
213229

214230
Then enter the following in a new terminal:
215231

216-
```
232+
```text
217233
$ arm-none-eabi-gdb -tui "<your binary ELF>"
218234
219235
(gdb) target remote localhost:3333

boards/arduino-due/doc.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,26 @@
44

55
\section arduino_due Arduino-Due
66

7-
## Table of Contents {#arduino_due_toc}
8-
9-
1. [Overview](#arduino_due_overview)
10-
2. [Hardware](#arduino_due_hardware)
11-
1. [MCU](#atmel_sam3x8e_mcu)
12-
2. [Board Configuration](#arduino_due_board_configuration)
13-
3. [Board Pinout](#arduino_due_pinout)
14-
3. [Flashing the Device](#arduino_due_flashing)
15-
16-
## Overview {#arduino_due_overview}
7+
## Overview
178

189
The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU.
1910
It is the first Arduino board based on a 32-bit ARM core microcontroller.
2011

21-
\image html "https://store.arduino.cc/cdn/shop/files/A000062_00.front_1000x750.jpg" "Arduino Due board" width=750px
12+
<img src="https://store.arduino.cc/cdn/shop/files/A000062_00.front_1000x750.jpg" alt="Arduino Due board" width=750px />
2213

23-
## Hardware {#arduino_due_hardware}
14+
## Hardware
2415

25-
### MCU {#atmel_sam3x8e_mcu}
16+
### MCU
2617

2718
The board features a SAM3X8E MCU (ARM Cortex-M3) running at up to 84MHz.
2819
It embeds 96 KiB of SRAM and 512 KiB of flash memory.
2920
The board reference manual is available [here](https://docs.arduino.cc/resources/datasheets/A000062-datasheet.pdf)
3021
and the MCU datasheet is available [here](https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf).
3122

32-
### Board configuration {#arduino_due_board_configuration}
23+
### Board configuration
24+
3325
The Arduino Due provides the following features:
26+
3427
- 54 I/Os (of which 12 PWM outputs)
3528
- 12 analog inputs
3629
- 4 UARTs
@@ -44,15 +37,18 @@ The Arduino Due provides the following features:
4437
- A reset button
4538
- An erase button
4639

47-
### Board pinout {#arduino_due_pinout}
40+
### Board pinout
4841

49-
\image html "https://content.arduino.cc/assets/Pinout-Due_latest.png" "Arduino Due pinout"
42+
<img src="https://content.arduino.cc/assets/Pinout-Due_latest.png" alt="Arduino Due pinout" style="max-width: 100%" />
5043

5144
The board schematics are available [here](https://docs.arduino.cc/resources/schematics/A000056-schematics.pdf).
5245

53-
## Flashing the device {#arduino_due_flashing}
46+
## Flashing the device
47+
5448
Flashing RIOT on the Arduino Due is quite straight forward as it relies on
5549
the preinstalled arduino bootloader. Connect your board using the programming
5650
port to your host computer and type:
5751

58-
`make BOARD=arduino-due flash`
52+
```shell
53+
make BOARD=arduino-due flash
54+
```

0 commit comments

Comments
 (0)