Skip to content

Commit

Permalink
Merge pull request #797 from stm32-rs/changelog2
Browse files Browse the repository at this point in the history
add changelog links
  • Loading branch information
burrbull authored Aug 17, 2024
2 parents f27fcdd + 4dd8336 commit 513c806
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
31 changes: 20 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,52 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
- Add `f469disc-lcd-test` with color/BER test pattern LCD output [#789]

### Added

- Add `f469disc-lcd-test` with color/BER test pattern LCD output [#789]
- Port `dsihost` implementation from stm32h7xx-hal [#786]
- I2C 10-bit address support for I2c [#772] [#783]
- `i2c_scanner` example [#758]
- Enable `sdio` for stm32f446
- Enable `sdio` for stm32f446 [#764]
- port LTDC implementation and example from stm32f7xx-hal [#731]
- port `stm32-fmc` support and example from stm32f7xx-hal [#759]
- IrDA mode for USARTs
- IrDA mode for USARTs [#761]
- initial `SAI` support [#248]
- initial `embedded-io` support [#725]

### Changed

- RTC: `ClockSource` enum instead of generic
- Bump MSRV to 1.62
- RTC: `ClockSource` enum instead of generic [#785]
- Bump MSRV to 1.62 [#778]
- Use `stm32f4-staging` until `stm32f4` is released [#706]
- use GPIO pac fields instead of raw write
- RTIC2 monotonics fix: CC1 instead of CC3
- use GPIO pac fields instead of raw write [#777]
- RTIC2 monotonics fix: CC1 instead of CC3 [#771]
- Allow different lengths of buffers in hal_1 SpiBus impl [#566]
- Clean SPI write impls
- Clean SPI write impls [#774]
- move `ptr()` to `Ptr` trait [#773]
- make `I2sFreq` trait similar to `BusClock`
- `steal` UART peripheral on `Rx::new`
- make `I2sFreq` trait similar to `BusClock` [#796]
- `steal` UART peripheral on `Rx::new` [#768]

[#248]: https://github.com/stm32-rs/stm32f4xx-hal/pull/248
[#566]: https://github.com/stm32-rs/stm32f4xx-hal/pull/566
[#706]: https://github.com/stm32-rs/stm32f4xx-hal/pull/706
[#725]: https://github.com/stm32-rs/stm32f4xx-hal/pull/725
[#731]: https://github.com/stm32-rs/stm32f4xx-hal/pull/731
[#758]: https://github.com/stm32-rs/stm32f4xx-hal/pull/758
[#759]: https://github.com/stm32-rs/stm32f4xx-hal/pull/759
[#761]: https://github.com/stm32-rs/stm32f4xx-hal/pull/761
[#764]: https://github.com/stm32-rs/stm32f4xx-hal/pull/764
[#768]: https://github.com/stm32-rs/stm32f4xx-hal/pull/768
[#771]: https://github.com/stm32-rs/stm32f4xx-hal/pull/771
[#772]: https://github.com/stm32-rs/stm32f4xx-hal/pull/772
[#773]: https://github.com/stm32-rs/stm32f4xx-hal/pull/773
[#774]: https://github.com/stm32-rs/stm32f4xx-hal/pull/774
[#777]: https://github.com/stm32-rs/stm32f4xx-hal/pull/777
[#778]: https://github.com/stm32-rs/stm32f4xx-hal/pull/778
[#783]: https://github.com/stm32-rs/stm32f4xx-hal/pull/783
[#759]: https://github.com/stm32-rs/stm32f4xx-hal/pull/759
[#785]: https://github.com/stm32-rs/stm32f4xx-hal/pull/785
[#796]: https://github.com/stm32-rs/stm32f4xx-hal/pull/796

## [v0.21.0] - 2024-05-30

Expand Down
5 changes: 2 additions & 3 deletions src/sai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ pub trait Channel: ChannelClocks {
// TODO: SAIB is on Channel 0, Stream 5 and Channel 1, Stream 4.
}

#[cfg(any(feature = "gpio-f413", feature = "gpio-f427", feature = "gpio-f469"))]
#[cfg(not(feature = "sai2"))]
impl<SAI, const C: bool> ChannelClocks for SAICH<SAI, C> {
fn get_clk_frequency(clocks: &rcc::Clocks) -> Option<Hertz> {
if C {
Expand All @@ -308,15 +308,14 @@ impl<SAI, const C: bool> ChannelClocks for SAICH<SAI, C> {
}
}

#[cfg(feature = "gpio-f446")]
#[cfg(feature = "sai2")]
impl<const C: bool> ChannelClocks for SAICH<SAI1, C> {
fn get_clk_frequency(clocks: &rcc::Clocks) -> Option<Hertz> {
clocks.sai1_clk()
}
}

#[cfg(feature = "sai2")]
#[cfg(feature = "gpio-f446")]
impl<const C: bool> ChannelClocks for SAICH<SAI2, C> {
fn get_clk_frequency(clocks: &rcc::Clocks) -> Option<Hertz> {
clocks.sai2_clk()
Expand Down

0 comments on commit 513c806

Please sign in to comment.