Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Aug 3, 2024
1 parent 7a1f902 commit 547dc79
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions examples/fmc-sdram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,14 @@ use core::{mem, slice};
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
use stm32_fmc::devices::is42s16400j_7;
use stm32f4xx_hal::{
fmc::FmcExt,
gpio::{alt::fmc as alt, Speed},
pac,
prelude::*,
};
use stm32f4xx_hal::{fmc::FmcExt, gpio::alt::fmc as alt, pac, prelude::*};

/// Configure pins for the FMC controller
macro_rules! fmc_pins {
($($alt:ident: $pin:expr,)*) => {
(
$(
alt::$alt::from($pin.into_alternate()
.speed(Speed::VeryHigh)
.internal_pull_up(true)
)
alt::$alt::from($pin.internal_pull_up(true))
),*
)
};
Expand Down

0 comments on commit 547dc79

Please sign in to comment.