Skip to content

Commit d15e318

Browse files
committed
Lint markdown files
1 parent 41cf473 commit d15e318

File tree

6 files changed

+76
-50
lines changed

6 files changed

+76
-50
lines changed

Diff for: .github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,12 @@ jobs:
138138
profile: minimal
139139
components: rustfmt
140140
- run: cd codegen && cargo check
141+
142+
markdown-lint:
143+
name: Markdown Lint
144+
runs-on: ubuntu-latest
145+
steps:
146+
- uses: nosborn/[email protected]
147+
with:
148+
files: .
149+
ignore_files: "target/"

Diff for: .markdownlint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
md024: false
2+
md014: false

Diff for: CHANGELOG.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4444
- Introduced auto-generated GPIO mappings based on the STM32CubeMX database
4545
([#129](https://github.com/stm32-rs/stm32f3xx-hal/pull/129))
4646

47-
4847
### Fixed
4948

5049
- Fixed [#151][] not being able to generate 72 MHz HCLK for stm32f303xc devices
@@ -64,8 +63,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6463
not mean, that we guarantee any MSRV policy. It is rather for documentation
6564
purposes and if a new useful feature arises, we will increase the MSRV.
6665
([#170](https://github.com/stm32-rs/stm32f3xx-hal/pull/170))
67-
- Removed I2C2 support for `stm32f303x6`, `stm32f303x8` and `stm32f328` targets. ([#164](https://github.com/stm32-rs/stm32f3xx-hal/pull/164))
68-
- `I2c::i2c1` and `I2c::i2c2` functions are renamed to `I2c::new`. ([#164](https://github.com/stm32-rs/stm32f3xx-hal/pull/164))
66+
- Removed I2C2 support for `stm32f303x6`, `stm32f303x8` and `stm32f328` targets.
67+
([#164](https://github.com/stm32-rs/stm32f3xx-hal/pull/164))
68+
- `I2c::i2c1` and `I2c::i2c2` functions are renamed to `I2c::new`.
69+
([#164](https://github.com/stm32-rs/stm32f3xx-hal/pull/164))
6970

7071
## [v0.5.0] - 2020-07-21
7172

@@ -85,6 +86,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8586
- The system clock calculation is more fine grained now. ([#67](https://github.com/stm32-rs/stm32f3xx-hal/pull/67))
8687
Now the system clock can be some value, like 14 MHz, which can not a
8788
be represented as a multiple of the oscillator clock:
89+
8890
```rust
8991
let clocks = rcc
9092
.cfgr
@@ -97,11 +99,11 @@ let clocks = rcc
9799
.use_hse(32.mhz())
98100
.sysclk(72.mhz())
99101
```
102+
100103
This is possible through utilizing the divider, which can divide the
101104
external oscillator clock on most devices. Some devices have even the
102105
possibility to divide the internal oscillator clock.
103106

104-
105107
### Breaking changes
106108

107109
- The feature gate requires you to select a subvariant if possible. ([#75](https://github.com/stm32-rs/stm32f3xx-hal/pull/75))
@@ -159,15 +161,17 @@ let clocks = rcc
159161
- This allows using 72 MHz `sysclk` on the `stm32f303`
160162
- Analog gpio trait ([#33](https://github.com/stm32-rs/stm32f3xx-hal/pull/33))
161163
- Add PWM Channels ([#34](https://github.com/stm32-rs/stm32f3xx-hal/pull/34))
162-
- SPI embedded hal modes are now public ([#35](https://github.com/stm32-rs/stm32f3xx-hal/pull/18))
164+
- SPI embedded hal modes are now public
165+
([#35](https://github.com/stm32-rs/stm32f3xx-hal/pull/18))
163166

164167
### Breaking changes
165168

166-
- Alternate gpio functions are now **only** made available for devices, which have them.
167-
([#21](https://github.com/stm32-rs/stm32f3xx-hal/pull/21))
169+
- Alternate gpio functions are now **only** made available for devices, which
170+
have them. ([#21](https://github.com/stm32-rs/stm32f3xx-hal/pull/21))
168171
- `stm32f303` is now split into `stm32f303xd` and `stm32f303xe` as they provide
169172
different alternate gpio functions. `stm32f303` is still available.
170-
- Bump `stm32f3` dependency to `0.9.0` ([#39](https://github.com/stm32-rs/stm32f3xx-hal/pull/39))
173+
- Bump `stm32f3` dependency to `0.9.0`
174+
([#39](https://github.com/stm32-rs/stm32f3xx-hal/pull/39))
171175

172176
### Fixed
173177

Diff for: Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ documentation = "https://docs.rs/stm32f3xx-hal"
1616
version = "0.6.0"
1717
exclude = [
1818
"codegen",
19+
".markdownlint.yml"
1920
]
2021

2122
[package.metadata.docs.rs]

Diff for: README.md

+50-40
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ peripheral access API for the STMicro STM32F3 series microcontrollers. The
99
selection of the MCU is done by feature gates, typically specified by board
1010
support crates. Currently supported configurations are:
1111

12-
* stm32f301 ✔️ YES!
13-
* stm32f318 ✔️ YES!
14-
* stm32f302 ✔️ YES!
15-
* stm32f303 ✔️ YES!
16-
* stm32f373 ✔️ YES!
17-
* stm32f378 ✔️ YES!
18-
* stm32f334 ✔️ YES!
19-
* stm32f328 ✔️ YES!
20-
* stm32f358 ✔️ YES!
21-
* stm32f398 ✔️ YES!
12+
* stm32f301
13+
* stm32f318
14+
* stm32f302
15+
* stm32f303
16+
* stm32f373
17+
* stm32f378
18+
* stm32f334
19+
* stm32f328
20+
* stm32f358
21+
* stm32f398
2222

2323
The idea behind this crate is to gloss over the slight differences in the
2424
various peripherals available on those MCUs so a HAL can be written for all
@@ -52,29 +52,30 @@ So you want to expand your call to `cargo` with `--features stm32f303xc`.*
5252
[comment]: # (Any changes here should be mirrored in src/lib.rs)
5353

5454
Note: `x` denotes any character in [a-z]
55-
* stm32f301xb
56-
* stm32f301xc
57-
* stm32f301xd
58-
* stm32f301xe
59-
* stm32f318
60-
* stm32f302xb
61-
* stm32f302xc
62-
* stm32f302xd
63-
* stm32f302xe
64-
* stm32f302x6
65-
* stm32f302x8
66-
* stm32f303xb
67-
* stm32f303xc
68-
* stm32f303xd
69-
* stm32f303xe
70-
* stm32f303x6
71-
* stm32f303x8
72-
* stm32f373
73-
* stm32f378
74-
* stm32f334
75-
* stm32f328
76-
* stm32f358
77-
* stm32f398
55+
56+
* stm32f301xb
57+
* stm32f301xc
58+
* stm32f301xd
59+
* stm32f301xe
60+
* stm32f318
61+
* stm32f302xb
62+
* stm32f302xc
63+
* stm32f302xd
64+
* stm32f302xe
65+
* stm32f302x6
66+
* stm32f302x8
67+
* stm32f303xb
68+
* stm32f303xc
69+
* stm32f303xd
70+
* stm32f303xe
71+
* stm32f303x6
72+
* stm32f303x8
73+
* stm32f373
74+
* stm32f378
75+
* stm32f334
76+
* stm32f328
77+
* stm32f358
78+
* stm32f398
7879

7980
### Background
8081

@@ -95,21 +96,30 @@ expect it to do so.*
9596

9697
### Detailed steps to select the right chip
9798

98-
1. Get the full name of the chip you are using from your datasheet, user manual or other source.
99+
1. Get the full name of the chip you are using from your datasheet, user manual
100+
or other source.
101+
102+
_Example_:
99103

100-
*Example: We want to use the STM32F3Discovery kit.*
101-
*The [Usermanual][] tells us it's using a STM32F303VC chip.*
104+
We want to use the STM32F3Discovery kit.
105+
The [Usermanual][] tells us it's using a STM32F303VC chip.
102106

103107
2. Find your chip as a feature in the list above.
104108

105-
*Example: Looking for the right feature for our STM32F303VC chip we first find
106-
`stm32f301xb`. This is the wrong chip, as we're not looking for `f301` but for `f303`.*
109+
_Example_:
107110

108-
*Looking further we find `stm32f303xc`. This matches STM32F303VC (note that VC → xc).*
111+
Looking for the right feature for our STM32F303VC chip we first find
112+
`stm32f301xb`. This is the wrong chip, as we're not looking for `f301` but
113+
for `f303`.
114+
115+
Looking further we find `stm32f303xc`. This matches STM32F303VC
116+
(note that VC → xc).
109117

110118
3. Add the chip name as a feature to your cargo call.
111119

112-
*Example: Using the STM32F303VC chip we run `cargo check --features stm32f303xc`.*
120+
_Example_:
121+
122+
Using the STM32F303VC chip we run `cargo check --features stm32f303xc`.
113123

114124
[Usermanual]: https://www.st.com/content/ccc/resource/technical/document/user_manual/8a/56/97/63/8d/56/41/73/DM00063382.pdf/files/DM00063382.pdf/jcr:content/translations/en.DM00063382.pdf
115125

Diff for: codegen/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Because by default cargo tries to use the `x86_64-unknown-linux-gnu` target,
1212
when building `codegen`, due to what's specified in the `.cargo/config`, you
1313
need to manually specify your host's target if it differs from that, e.g.:
1414

15-
```
15+
```bash
1616
$ cargo run --target x86_64-apple-darwin -- help
1717
```
1818

@@ -26,7 +26,7 @@ Running `codegen`'s `gpio` subcommand generates the `gpio!` macro
2626
invocations at the end of `src/gpio.rs`. Re-generating those macro-invocations
2727
is simply a matter of deleting the old ones and then executing:
2828

29-
```
29+
```bash
3030
$ cargo run -- gpio $cubemx_db_path >> ../src/gpio.rs
3131
```
3232

0 commit comments

Comments
 (0)