Skip to content

Commit

Permalink
Merge pull request #21257 from crasbe/pr/porting_boards_new
Browse files Browse the repository at this point in the history
doc/porting-boards: Change example doc.txt to doc.md
  • Loading branch information
mguetschow authored Mar 3, 2025
2 parents 812277f + cb0c45b commit e545642
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions doc/doxygen/src/porting-boards.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ makefiles. Usually a `BOARD` directory has the following structure
|----dist/
|----scripts
|----board.c
|----doc.txt
|----doc.md
|----include/
|----periph_conf.h
|----board.h
Expand Down Expand Up @@ -215,7 +215,7 @@ Alternatively, the pseudomodule @ref pseudomodule_ztimer_auto_adjust can be used
in an application to enable automatic timer offset compensation at board startup.
This however incurs overhead both in the text segment and at bootup time.

## doc.txt {#board-doc}
## doc.md {#board-doc}

Although not explicitly needed, if upstreamed and as a general good
practice, this file holds all `BOARD` documentation. This can include
Expand All @@ -225,16 +225,15 @@ The documentation must be under the proper doxygen group, you can compile the
documentation by calling `make doc` and then open the generated html file on
any browser.

```
/**
```md
@defgroup boards_foo FooBoard
@ingroup boards
@brief Support for the foo board
@author FooName BarName <[email protected]>

### User Interface

....
...

### Using UART

Expand All @@ -243,8 +242,18 @@ any browser.
### Flashing the device

...
```

Previously documentation was contained in `doc.txt` files with C-style comment
blocks. This style has been deprecated in favor of using `doc.md` files in
Markdown format, which eliminates formatting and interpretation issues.
Old style files will continually be replaced by the new format.

*/
Up to version `0.9.2` the [riotgen](https://pypi.org/project/riotgen/) tool
will generate `doc.txt` files instead of `doc.md` files. You can upgrade it to
the latest version with
```sh
pip install --upgrade riotgen
```

# Helper tools
Expand Down Expand Up @@ -341,7 +350,7 @@ specify multiple directories separated by spaces.
|----dist/
|----scripts
|----board.c
|----doc.txt
|----doc.md
|----include/
|----periph_conf.h
|----board.h
Expand Down

0 comments on commit e545642

Please sign in to comment.