Merge branch 'main' into feat-independent-nodiv

This commit is contained in:
Tomaz Maia Suller 2025-08-26 11:43:08 +02:00 committed by GitHub
commit 0203b2b257
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased - ReleaseDate
- feat: stm32/sai: make NODIV independent of MCKDIV
- fix: stm32/sai: fix WB MCKDIV
- fix: stm32/i2c: pull-down was enabled instead of pull-none when no internal pull-up was needed.
- feat: Improve blocking hash speed
- fix: Fix vrefbuf building with log feature

View File

@ -390,7 +390,7 @@ impl OutputDrive {
/// Master clock divider.
#[derive(Copy, Clone, PartialEq)]
#[allow(missing_docs)]
#[cfg(any(sai_v1, sai_v1_4pdm, sai_v2))]
#[cfg(any(sai_v1, sai_v2))]
pub enum MasterClockDivider {
MasterClockDisabled,
Div1,
@ -414,7 +414,7 @@ pub enum MasterClockDivider {
/// Master clock divider.
#[derive(Copy, Clone, PartialEq)]
#[allow(missing_docs)]
#[cfg(any(sai_v3_2pdm, sai_v3_4pdm, sai_v4_2pdm, sai_v4_4pdm))]
#[cfg(any(sai_v1_4pdm, sai_v3_2pdm, sai_v3_4pdm, sai_v4_2pdm, sai_v4_4pdm))]
pub enum MasterClockDivider {
MasterClockDisabled,
Div1,
@ -483,7 +483,7 @@ pub enum MasterClockDivider {
}
impl MasterClockDivider {
#[cfg(any(sai_v1, sai_v1_4pdm, sai_v2))]
#[cfg(any(sai_v1, sai_v2))]
const fn mckdiv(&self) -> u8 {
match self {
MasterClockDivider::MasterClockDisabled => 0,
@ -506,7 +506,7 @@ impl MasterClockDivider {
}
}
#[cfg(any(sai_v3_2pdm, sai_v3_4pdm, sai_v4_2pdm, sai_v4_4pdm))]
#[cfg(any(sai_v1_4pdm, sai_v3_2pdm, sai_v3_4pdm, sai_v4_2pdm, sai_v4_4pdm))]
const fn mckdiv(&self) -> u8 {
match self {
MasterClockDivider::MasterClockDisabled => 0,