Skip to content

Commit c8b8a0e

Browse files
committed
Pass in enable_internal_pullups
1 parent 4106c52 commit c8b8a0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/storage/sd_card.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ impl<'a> SDCardStorage<'a> {
5252
if self.sd_card_driver.is_some() {
5353
bail!("Driver already installed");
5454
}
55+
let mut host_config = SdMmcHostConfiguration::new();
56+
// Notice: the dev board use external pullups
57+
// TODO: make this configurable?
58+
host_config.enable_internal_pullups = false;
5559
self.sd_card_driver = Some(SdCardDriver::new_mmc(
5660
SdMmcHostDriver::new_4bits(
5761
peripherals.slot,
@@ -63,7 +67,7 @@ impl<'a> SDCardStorage<'a> {
6367
peripherals.d3,
6468
None::<gpio::AnyIOPin>,
6569
None::<gpio::AnyIOPin>,
66-
&SdMmcHostConfiguration::new(),
70+
&host_config,
6771
)?,
6872
&SdCardConfiguration::new(),
6973
)?);

0 commit comments

Comments
 (0)