-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21257 from crasbe/pr/porting_boards_new
doc/porting-boards: Change example doc.txt to doc.md
- Loading branch information
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -341,7 +350,7 @@ specify multiple directories separated by spaces. | |
|----dist/ | ||
|----scripts | ||
|----board.c | ||
|----doc.txt | ||
|----doc.md | ||
|----include/ | ||
|----periph_conf.h | ||
|----board.h | ||
|