Skip to content

Commit 361c250

Browse files
authored
Merge pull request #266 from Sh3Rm4n/exhaust
Breaking Changes for non-complete modules
2 parents 5c56fa9 + b28b91e commit 361c250

File tree

10 files changed

+580
-738
lines changed

10 files changed

+580
-738
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4949
This should make it easier to generically use the `Serial` peripheral. ([#253])
5050
- Greatly increase coverage of `Debug` and `defmt::Format` implementations.
5151
Almost all important types should now be supported. ([#265])
52+
- Add a `free()` function to the RTC implementation to retrieve the passed-in
53+
peripheral. ([#266])
5254

5355
[`enumset`]: https://crates.io/crates/enumset
5456

@@ -103,6 +105,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
103105
- Make timer Events `#[non_exhaustive]`. ([#264])
104106
- Renames timers `release()` function to `free()` to be more in line with the
105107
rest of this crate. ([#264])
108+
- rtc's `Error` type and `OperationMode` and `CkMode` of adc are now `#[non_exhaustive]`.
109+
([#266])
110+
- All non-camel-case types are chaged to be consistently camel-case types.
111+
Types which do not follow these rules are re-exported types by `stm32f3` for
112+
example. ([#266])
113+
- Adc's `SampleTime` type has been reworked and is now a consistent wrapper around
114+
the underlying types for `stm32f3`'s `SMP9_A` and `SMP18_A` type. ([#266])
115+
- Rename `CkMode` to `ClockMode` ([#266])
106116

107117
## [v0.7.0] - 2021-06-18
108118

@@ -428,6 +438,7 @@ let clocks = rcc
428438
[defmt]: https://github.com/knurling-rs/defmt
429439
[filter]: https://defmt.ferrous-systems.com/filtering.html
430440

441+
[#266]: https://github.com/stm32-rs/stm32f3xx-hal/pull/266
431442
[#265]: https://github.com/stm32-rs/stm32f3xx-hal/pull/265
432443
[#264]: https://github.com/stm32-rs/stm32f3xx-hal/pull/264
433444
[#263]: https://github.com/stm32-rs/stm32f3xx-hal/pull/263

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ chosen.
9191
#### Background
9292

9393
For some of the stm32f3xx chips there are sub-variants that differ in
94-
functionality, peripheral use and hence 'under the hood' implementation. To
95-
allow the full use of all peripherals on certain subvariants without
96-
allowing for code that just doesn't run on other sub-vairants, they are
94+
functionality, peripheral use and hence 'under the hood' implementation.
95+
To allow the full use of all peripherals on certain sub-variants without
96+
allowing for code that just doesn't run on other sub-variants, they are
9797
distinct features that need to be specified.
9898

9999
[user manual]: 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
@@ -141,10 +141,8 @@ compile with older versions but that may change in any new patch release.
141141

142142
<!-- Don't forget to also adjust the MSVR version in `.github/workflows/ci.yml` -->
143143

144+
## [Contributing](CONTRIBUTING.md)
145+
144146
## License
145147

146148
[0-clause BSD license](LICENSE-0BSD.txt).
147-
148-
## Contributing
149-
150-
See [CONTRIBUTING.md](CONTRIBUTING.md)

examples/adc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() -> ! {
2626
// correctly.
2727
&mut dp.ADC1_2,
2828
&mut rcc.ahb,
29-
adc::CkMode::default(),
29+
adc::ClockMode::default(),
3030
clocks,
3131
);
3232

0 commit comments

Comments
 (0)