Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 5, 2024
1 parent f41a050 commit 1afd651
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ fn main() {
(("timer", "CH2"), quote!(crate::timer::Ch2Dma)),
(("timer", "CH3"), quote!(crate::timer::Ch3Dma)),
(("timer", "CH4"), quote!(crate::timer::Ch4Dma)),

(("sdio", "SDIO"), quote!(crate::sdio::SdmmcDma))
(("sdio", "SDIO"), quote!(crate::sdio::SdmmcDma)),
]
.into();

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub mod spi;
// TODO
#[cfg(sdio_v3)]
pub mod sdio;
#[cfg(any(timer_x0, timer_v3))]
#[cfg(any(timer_x0, timer_v3, timer_common))]
pub mod timer;
pub mod usart;

Expand Down
1 change: 0 additions & 1 deletion src/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ mod tim7 {
impl crate::peripheral::RemapPeripheral for crate::peripherals::TIM7 {}
}


#[cfg(all(peri_sdio))]
mod sdio {
impl crate::peripheral::sealed::RemapPeripheral for crate::peripherals::SDIO {
Expand Down
2 changes: 1 addition & 1 deletion src/rcc/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub(crate) unsafe fn init(config: Config) {
super::CLOCKS.pclk2 = pclk2;

super::CLOCKS.pclk1_tim = Hertz(sysclk);
super::CLOCKS.pclk2_tim = hHertz(sysclk);
super::CLOCKS.pclk2_tim = Hertz(sysclk);
}

impl ops::Div<APBPrescaler> for Hertz {
Expand Down

0 comments on commit 1afd651

Please sign in to comment.