File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,14 @@ impl From<embedded_sdmmc::SdCardError> for Error {
94
94
}
95
95
96
96
fn main ( ) -> Result < ( ) , Error > {
97
+ // BEGIN Fake stuff that will be replaced with real peripherals
97
98
let spi_bus = RefCell :: new ( FakeSpiBus ( ) ) ;
98
99
let delay = FakeDelayer ( ) ;
99
100
let sdmmc_spi = embedded_hal_bus:: spi:: RefCellDevice :: new ( & spi_bus, DummyCsPin , delay) ;
100
101
let sdmmc_cs = FakeCs ( ) ;
101
102
let time_source = FakeTimesource ( ) ;
103
+ // END Fake stuff that will be replaced with real peripherals
104
+
102
105
// Build an SD Card interface out of an SPI device, a chip-select pin and the delay object
103
106
let sdcard = embedded_sdmmc:: SdCard :: new ( sdmmc_spi, sdmmc_cs, delay) ;
104
107
// Get the card size (this also triggers card initialisation because it's not been done yet)
You can’t perform that action at this time.
0 commit comments