Skip to content

Commit

Permalink
Pass in enable_internal_pullups
Browse files Browse the repository at this point in the history
  • Loading branch information
fangpenlin committed Jan 8, 2025
1 parent 4106c52 commit c8b8a0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/storage/sd_card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ impl<'a> SDCardStorage<'a> {
if self.sd_card_driver.is_some() {
bail!("Driver already installed");
}
let mut host_config = SdMmcHostConfiguration::new();
// Notice: the dev board use external pullups
// TODO: make this configurable?
host_config.enable_internal_pullups = false;
self.sd_card_driver = Some(SdCardDriver::new_mmc(
SdMmcHostDriver::new_4bits(
peripherals.slot,
Expand All @@ -63,7 +67,7 @@ impl<'a> SDCardStorage<'a> {
peripherals.d3,
None::<gpio::AnyIOPin>,
None::<gpio::AnyIOPin>,
&SdMmcHostConfiguration::new(),
&host_config,
)?,
&SdCardConfiguration::new(),
)?);
Expand Down

0 comments on commit c8b8a0e

Please sign in to comment.