Skip to content

Commit 70a2fcd

Browse files
committed
pwm input enums
1 parent 74a6f27 commit 70a2fcd

File tree

10 files changed

+731
-211
lines changed

10 files changed

+731
-211
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10-
- Use `enum`s for alternate peripheral pins
10+
- Use `enum`s for alternate peripheral pins [#594]
1111
- Added missing U(S)ART DMA traits for HAL serial types [#593]
1212
- Improve SPI::new* docs [#587]
1313
- Add advanced timer dead time insertion example [#585]
14-
- Cleanups
15-
- Fix comlementary for independent channels
14+
- Cleanups [#595]
15+
- Fix comlementary for independent channels [#599]
1616

1717
## [v0.15.0] - 2023-03-13
1818

@@ -47,6 +47,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4747
[#577]: https://github.com/stm32-rs/stm32f4xx-hal/pull/577
4848
[#578]: https://github.com/stm32-rs/stm32f4xx-hal/pull/578
4949
[#581]: https://github.com/stm32-rs/stm32f4xx-hal/pull/581
50+
[#594]: https://github.com/stm32-rs/stm32f4xx-hal/pull/594
51+
[#595]: https://github.com/stm32-rs/stm32f4xx-hal/pull/595
52+
[#599]: https://github.com/stm32-rs/stm32f4xx-hal/pull/599
5053

5154

5255
## [v0.14.0] - 2022-12-12

src/dma/mod.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,22 +213,12 @@ impl<DMA, const S: u8> StreamX<DMA, S> {
213213
}
214214

215215
impl<DMA: Instance, const S: u8> StreamX<DMA, S> {
216-
#[cfg(not(any(
217-
feature = "stm32f411",
218-
feature = "stm32f413",
219-
feature = "stm32f423",
220-
feature = "stm32f410"
221-
)))]
216+
#[cfg(not(any(feature = "gpio-f411", feature = "gpio-f413", feature = "gpio-f410")))]
222217
#[inline(always)]
223218
unsafe fn st() -> &'static pac::dma2::ST {
224219
&(*DMA::ptr()).st[S as usize]
225220
}
226-
#[cfg(any(
227-
feature = "stm32f411",
228-
feature = "stm32f413",
229-
feature = "stm32f423",
230-
feature = "stm32f410"
231-
))]
221+
#[cfg(any(feature = "gpio-f411", feature = "gpio-f413", feature = "gpio-f410"))]
232222
#[inline(always)]
233223
unsafe fn st() -> &'static pac::dma1::ST {
234224
&(*DMA::ptr()).st[S as usize]
@@ -667,7 +657,7 @@ dma_channel!(
667657
(Channel7, 7),
668658
);
669659

670-
#[cfg(any(feature = "stm32f413", feature = "stm32f423"))]
660+
#[cfg(feature = "gpio-f413")]
671661
dma_channel!((Channel8, 8), (Channel9, 9),);
672662

673663
/// Contains types related to DMA configuration.

0 commit comments

Comments
 (0)