From 7c44dc76cfd9acfb9fd8291ab3fe07e85cc652ea Mon Sep 17 00:00:00 2001 From: "Jonathan Pallant (Ferrous Systems)" Date: Fri, 5 May 2023 19:50:12 +0100 Subject: [PATCH 1/7] Add a DIR command. Can only do the root dir on Volume 0. --- Cargo.toml | 1 + src/commands/fs.rs | 152 ++++++++++++++++++++++++++++++++++++++++++++ src/commands/mod.rs | 2 + 3 files changed, 155 insertions(+) create mode 100644 src/commands/fs.rs diff --git a/Cargo.toml b/Cargo.toml index 8ad29bb..e8cb6ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,4 @@ postcard = "0.5" serde = { version = "1.0", default-features = false } menu = "0.3" chrono = { version = "0.4", default-features = false } +embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", default-features = false, features = ["defmt-log"] } diff --git a/src/commands/fs.rs b/src/commands/fs.rs new file mode 100644 index 0000000..4988a7d --- /dev/null +++ b/src/commands/fs.rs @@ -0,0 +1,152 @@ +//! File Systems related commands for Neotron OS + +use chrono::{Datelike, Timelike}; +use embedded_sdmmc::VolumeIdx; + +use crate::{bios, print, println, Ctx, API}; + +pub static DIR_ITEM: menu::Item = menu::Item { + item_type: menu::ItemType::Callback { + function: dir, + parameters: &[], + }, + command: "dir", + help: Some("Dir the root directory on block device 0"), +}; + +struct BiosBlock(); + +impl embedded_sdmmc::BlockDevice for BiosBlock { + type Error = bios::Error; + + fn read( + &self, + blocks: &mut [embedded_sdmmc::Block], + start_block_idx: embedded_sdmmc::BlockIdx, + _reason: &str, + ) -> Result<(), Self::Error> { + let api = API.get(); + let byte_slice = unsafe { + core::slice::from_raw_parts_mut( + blocks.as_mut_ptr() as *mut u8, + blocks.len() * embedded_sdmmc::Block::LEN, + ) + }; + match (api.block_read)( + 0, + bios::block_dev::BlockIdx(u64::from(start_block_idx.0)), + blocks.len() as u8, + bios::ApiBuffer::new(byte_slice), + ) { + bios::Result::Ok(_) => Ok(()), + bios::Result::Err(e) => Err(e), + } + } + + fn write( + &self, + blocks: &[embedded_sdmmc::Block], + start_block_idx: embedded_sdmmc::BlockIdx, + ) -> Result<(), Self::Error> { + let api = API.get(); + let byte_slice = unsafe { + core::slice::from_raw_parts( + blocks.as_ptr() as *const u8, + blocks.len() * embedded_sdmmc::Block::LEN, + ) + }; + match (api.block_write)( + 0, + bios::block_dev::BlockIdx(u64::from(start_block_idx.0)), + blocks.len() as u8, + bios::ApiByteSlice::new(byte_slice), + ) { + bios::Result::Ok(_) => Ok(()), + bios::Result::Err(e) => Err(e), + } + } + + fn num_blocks(&self) -> Result { + let api = API.get(); + match (api.block_dev_get_info)(0) { + bios::Option::Some(info) => Ok(embedded_sdmmc::BlockCount(info.num_blocks as u32)), + bios::Option::None => Err(bios::Error::InvalidDevice), + } + } +} + +struct BiosTime(); + +impl embedded_sdmmc::TimeSource for BiosTime { + fn get_timestamp(&self) -> embedded_sdmmc::Timestamp { + let time = API.get_time(); + embedded_sdmmc::Timestamp { + year_since_1970: (time.year() - 1970) as u8, + zero_indexed_month: time.month0() as u8, + zero_indexed_day: time.day0() as u8, + hours: time.hour() as u8, + minutes: time.minute() as u8, + seconds: time.second() as u8, + } + } +} + +/// Called when the "lsblk" command is executed. +fn dir(_menu: &menu::Menu, _item: &menu::Item, _args: &[&str], _ctx: &mut Ctx) { + fn work() -> Result<(), embedded_sdmmc::Error> { + println!("Listing files on Block Device 0, /"); + let bios_block = BiosBlock(); + let time = BiosTime(); + let mut mgr = embedded_sdmmc::VolumeManager::new(bios_block, time); + // Open the first partition + let volume = mgr.get_volume(VolumeIdx(0))?; + let root_dir = mgr.open_root_dir(&volume)?; + let mut total_bytes = 0u64; + let mut num_files = 0; + mgr.iterate_dir(&volume, &root_dir, |dir_entry| { + let padding = 8 - dir_entry.name.base_name().len(); + for b in dir_entry.name.base_name() { + let ch = *b as char; + print!("{}", if ch.is_ascii_graphic() { ch } else { '?' }); + } + for _ in 0..padding { + print!(" "); + } + print!(" "); + let padding = 3 - dir_entry.name.extension().len(); + for b in dir_entry.name.extension() { + let ch = *b as char; + print!("{}", if ch.is_ascii_graphic() { ch } else { '?' }); + } + for _ in 0..padding { + print!(" "); + } + if dir_entry.attributes.is_directory() { + print!(" "); + } else { + print!(" {:-13}", dir_entry.size,); + } + print!( + " {:02}/{:02}/{:04}", + dir_entry.mtime.zero_indexed_day + 1, + dir_entry.mtime.zero_indexed_month + 1, + u32::from(dir_entry.mtime.year_since_1970) + 1970 + ); + println!( + " {:02}:{:02}", + dir_entry.mtime.hours, dir_entry.mtime.minutes + ); + total_bytes += dir_entry.size as u64; + num_files += 1; + })?; + println!("{:-9} file(s) {:-13} bytes", num_files, total_bytes); + Ok(()) + } + + match work() { + Ok(_) => {} + Err(e) => { + println!("Error: {:?}", e); + } + } +} diff --git a/src/commands/mod.rs b/src/commands/mod.rs index fe0989f..3da65c4 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -6,6 +6,7 @@ pub use super::Ctx; mod block; mod config; +mod fs; mod hardware; mod input; mod ram; @@ -19,6 +20,7 @@ pub static OS_MENU: menu::Menu = menu::Menu { &config::COMMAND_ITEM, &block::LSBLK_ITEM, &block::READ_ITEM, + &fs::DIR_ITEM, &hardware::LSHW_ITEM, &ram::HEXDUMP_ITEM, &ram::LOAD_ITEM, From 407918bac7502c1c2641811b6e24b59b1cf137d7 Mon Sep 17 00:00:00 2001 From: "Jonathan Pallant (Ferrous Systems)" Date: Fri, 5 May 2023 22:21:07 +0100 Subject: [PATCH 2/7] Set logs in embedded-sdmmc correctly. It has to either use the log crate or the defmt-log crate. You can't specify neither. Also the log crate doesn't work on thumb targets and the defmt-log crate doesn't work on native targets. This fixes the "syntax error in VERSION script" error. --- Cargo.toml | 10 +++++++++- README.md | 4 ++-- build.sh | 6 +++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e8cb6ac..35f589b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,19 +12,23 @@ repository = "https://github.com/neotron-compute/Neotron-OS" name = "flash1002" test = false bench = false +required-features = ["defmt-log"] [[bin]] name = "flash0802" test = false bench = false +required-features = ["defmt-log"] [[bin]] name = "flash0002" test = false bench = false +required-features = ["defmt-log"] [lib] crate-type = ["rlib", "cdylib"] +required-features = ["native-log"] [profile.release] lto = true @@ -44,4 +48,8 @@ postcard = "0.5" serde = { version = "1.0", default-features = false } menu = "0.3" chrono = { version = "0.4", default-features = false } -embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", default-features = false, features = ["defmt-log"] } +embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", default-features = false } + +[features] +native-log = ["embedded-sdmmc/log"] +defmt-log = ["embedded-sdmmc/defmt-log"] diff --git a/README.md b/README.md index 5e61c56..3022f47 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ three different binaries: ```console $ git clone https://github.com/neotron-compute/Neotron-OS.git $ cd Neotron-OS -$ cargo build --target thumbv6m-none-eabi --release --bins +$ cargo build --target thumbv6m-none-eabi --release --bins --features=defmt-log $ ls ./target/thumbv6m-none-eabi/release/flash*02 ./target/thumbv6m-none-eabi/release/flash0002 ./target/thumbv6m-none-eabi/release/flash0802 ./target/thumbv6m-none-eabi/release/flash1002 ``` @@ -44,7 +44,7 @@ Your BIOS should tell you which one you want and how to load it onto your system You can also build a *shared object* to load into a Windows/Linux/macOS application. ```console -$ cargo build --lib +$ cargo build --lib --features=native-log $ ls ./target/debug/*.so ./target/debug/libneotron_os.so ``` diff --git a/build.sh b/build.sh index d235682..805cde3 100755 --- a/build.sh +++ b/build.sh @@ -11,9 +11,9 @@ for TARGET_ARCH in thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi; do echo "TARGET is ${TARGET_ARCH}" for BINARY in flash0002 flash0802 flash1002; do echo "BINARY is ${BINARY}" - cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} + cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} --features=defmt-log # objcopy would do the build for us first, but it doesn't have good build output - cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin + cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} --features=defmt-log -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin # Keep the ELF file too (for debugging) cp ./target/${TARGET_ARCH}/release/${BINARY} ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.elf done @@ -21,5 +21,5 @@ done # Build the host version echo "Building HOST" -cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu +cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu --features=native-log cp ./target/x86_64-unknown-linux-gnu/release/libneotron_os.so ${RELEASE_DIR}/x86_64-unknown-linux-gnu-libneotron_os.so From 15e733bb3b526502b35c34aa3e8a58458e6ebd2b Mon Sep 17 00:00:00 2001 From: "Jonathan Pallant (Ferrous Systems)" Date: Sat, 6 May 2023 21:39:55 +0100 Subject: [PATCH 3/7] readblk is less verbose. Otherwise it doesn't fit on one screen. --- src/commands/block.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/commands/block.rs b/src/commands/block.rs index 87fab98..df7585d 100644 --- a/src/commands/block.rs +++ b/src/commands/block.rs @@ -26,7 +26,7 @@ pub static READ_ITEM: menu::Item = menu::Item { ], }, command: "readblk", - help: Some("List all the Block Devices"), + help: Some("Display one disk block, as hex"), }; /// Called when the "lsblk" command is executed. @@ -96,15 +96,10 @@ fn read_block(_menu: &menu::Menu, _item: &menu::Item, args: &[&str], _ bios::Result::Ok(_) => { // Carry on let mut count = 0; - for chunk in buffer.chunks(16) { + for chunk in buffer.chunks(32) { print!("{:03x}: ", count); for b in chunk { - print!("{:02x} ", *b); - } - print!(" "); - for b in chunk { - let c = char::from(*b); - print!("{}", if c.is_ascii_graphic() { c } else { '.' }); + print!("{:02x}", *b); } count += chunk.len(); println!(); From 0a5aa289b20117d7639097d46a6b54a051927b9c Mon Sep 17 00:00:00 2001 From: "Jonathan Pallant (Ferrous Systems)" Date: Sat, 6 May 2023 21:41:32 +0100 Subject: [PATCH 4/7] Updated to latest experimental embedded-sdmmc. --- Cargo.toml | 9 +-------- README.md | 4 ++-- build.sh | 6 +++--- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 35f589b..5a99ecc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,19 +12,16 @@ repository = "https://github.com/neotron-compute/Neotron-OS" name = "flash1002" test = false bench = false -required-features = ["defmt-log"] [[bin]] name = "flash0802" test = false bench = false -required-features = ["defmt-log"] [[bin]] name = "flash0002" test = false bench = false -required-features = ["defmt-log"] [lib] crate-type = ["rlib", "cdylib"] @@ -48,8 +45,4 @@ postcard = "0.5" serde = { version = "1.0", default-features = false } menu = "0.3" chrono = { version = "0.4", default-features = false } -embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", default-features = false } - -[features] -native-log = ["embedded-sdmmc/log"] -defmt-log = ["embedded-sdmmc/defmt-log"] +embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", branch="more-api-cleanups", default-features = false } diff --git a/README.md b/README.md index 3022f47..5e61c56 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ three different binaries: ```console $ git clone https://github.com/neotron-compute/Neotron-OS.git $ cd Neotron-OS -$ cargo build --target thumbv6m-none-eabi --release --bins --features=defmt-log +$ cargo build --target thumbv6m-none-eabi --release --bins $ ls ./target/thumbv6m-none-eabi/release/flash*02 ./target/thumbv6m-none-eabi/release/flash0002 ./target/thumbv6m-none-eabi/release/flash0802 ./target/thumbv6m-none-eabi/release/flash1002 ``` @@ -44,7 +44,7 @@ Your BIOS should tell you which one you want and how to load it onto your system You can also build a *shared object* to load into a Windows/Linux/macOS application. ```console -$ cargo build --lib --features=native-log +$ cargo build --lib $ ls ./target/debug/*.so ./target/debug/libneotron_os.so ``` diff --git a/build.sh b/build.sh index 805cde3..d235682 100755 --- a/build.sh +++ b/build.sh @@ -11,9 +11,9 @@ for TARGET_ARCH in thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi; do echo "TARGET is ${TARGET_ARCH}" for BINARY in flash0002 flash0802 flash1002; do echo "BINARY is ${BINARY}" - cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} --features=defmt-log + cargo build --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} # objcopy would do the build for us first, but it doesn't have good build output - cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} --features=defmt-log -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin + cargo objcopy --verbose --release --target=${TARGET_ARCH} --bin ${BINARY} -- -O binary ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.bin # Keep the ELF file too (for debugging) cp ./target/${TARGET_ARCH}/release/${BINARY} ${RELEASE_DIR}/${TARGET_ARCH}-${BINARY}-libneotron_os.elf done @@ -21,5 +21,5 @@ done # Build the host version echo "Building HOST" -cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu --features=native-log +cargo build --verbose --lib --release --target=x86_64-unknown-linux-gnu cp ./target/x86_64-unknown-linux-gnu/release/libneotron_os.so ${RELEASE_DIR}/x86_64-unknown-linux-gnu-libneotron_os.so From 48926204383143aec944f992d4a81ac5a1075fd5 Mon Sep 17 00:00:00 2001 From: "Jonathan Pallant (Ferrous Systems)" Date: Fri, 19 May 2023 16:43:37 +0100 Subject: [PATCH 5/7] Can load files from disk. --- src/commands/fs.rs | 49 +++++++++++++++++++++++++++++++++++++- src/commands/mod.rs | 3 ++- src/commands/ram.rs | 57 +-------------------------------------------- 3 files changed, 51 insertions(+), 58 deletions(-) diff --git a/src/commands/fs.rs b/src/commands/fs.rs index 4988a7d..97ab059 100644 --- a/src/commands/fs.rs +++ b/src/commands/fs.rs @@ -14,6 +14,18 @@ pub static DIR_ITEM: menu::Item = menu::Item { help: Some("Dir the root directory on block device 0"), }; +pub static LOAD_ITEM: menu::Item = menu::Item { + item_type: menu::ItemType::Callback { + function: load, + parameters: &[menu::Parameter::Mandatory { + parameter_name: "file", + help: Some("The file to load"), + }], + }, + command: "load", + help: Some("Load a file into the application area"), +}; + struct BiosBlock(); impl embedded_sdmmc::BlockDevice for BiosBlock { @@ -91,7 +103,7 @@ impl embedded_sdmmc::TimeSource for BiosTime { } } -/// Called when the "lsblk" command is executed. +/// Called when the "dir" command is executed. fn dir(_menu: &menu::Menu, _item: &menu::Item, _args: &[&str], _ctx: &mut Ctx) { fn work() -> Result<(), embedded_sdmmc::Error> { println!("Listing files on Block Device 0, /"); @@ -150,3 +162,38 @@ fn dir(_menu: &menu::Menu, _item: &menu::Item, _args: &[&str], _ctx: & } } } + +/// Called when the "load" command is executed. +#[cfg(target_os = "none")] +fn load(_menu: &menu::Menu, _item: &menu::Item, args: &[&str], _ctx: &mut Ctx) { + fn work(args: &[&str]) -> Result<(), embedded_sdmmc::Error> { + println!("Loading /{} from Block Device 0", args[0]); + let bios_block = BiosBlock(); + let time = BiosTime(); + let mut mgr = embedded_sdmmc::VolumeManager::new(bios_block, time); + // Open the first partition + let mut volume = mgr.get_volume(VolumeIdx(0))?; + let root_dir = mgr.open_root_dir(&volume)?; + let mut file = mgr.open_file_in_dir( + &mut volume, + &root_dir, + args[0], + embedded_sdmmc::Mode::ReadOnly, + )?; + let file_length = file.length(); + // Application space starts 4K into Cortex-M SRAM + const APPLICATION_START_ADDR: usize = 0x2000_1000; + let application_ram: &'static mut [u8] = unsafe { + core::slice::from_raw_parts_mut(APPLICATION_START_ADDR as *mut u8, file_length as usize) + }; + mgr.read(&mut volume, &mut file, application_ram)?; + Ok(()) + } + + match work(args) { + Ok(_) => {} + Err(e) => { + println!("Error: {:?}", e); + } + } +} diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 3da65c4..c316eb3 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -23,9 +23,10 @@ pub static OS_MENU: menu::Menu = menu::Menu { &fs::DIR_ITEM, &hardware::LSHW_ITEM, &ram::HEXDUMP_ITEM, - &ram::LOAD_ITEM, #[cfg(target_os = "none")] &ram::RUN_ITEM, + #[cfg(target_os = "none")] + &fs::LOAD_ITEM, &screen::CLEAR_ITEM, &screen::BENCH_ITEM, &screen::FILL_ITEM, diff --git a/src/commands/ram.rs b/src/commands/ram.rs index 42580f8..5d4ca37 100644 --- a/src/commands/ram.rs +++ b/src/commands/ram.rs @@ -20,24 +20,6 @@ pub static HEXDUMP_ITEM: menu::Item = menu::Item { help: Some("Dump the contents of RAM as hex"), }; -pub static LOAD_ITEM: menu::Item = menu::Item { - item_type: menu::ItemType::Callback { - function: load, - parameters: &[ - menu::Parameter::Mandatory { - parameter_name: "address", - help: Some("Start address"), - }, - menu::Parameter::Mandatory { - parameter_name: "hex", - help: Some("Bytes as hex string"), - }, - ], - }, - command: "load", - help: Some("Load hex bytes into RAM from stdin"), -}; - #[cfg(target_os = "none")] pub static RUN_ITEM: menu::Item = menu::Item { item_type: menu::ItemType::Callback { @@ -99,44 +81,6 @@ fn hexdump(_menu: &menu::Menu, _item: &menu::Item, args: &[&str], _ctx println!(); } -/// Called when the "load" command is executed. -fn load(_menu: &menu::Menu, _item: &menu::Item, args: &[&str], _ctx: &mut Ctx) { - let Some(address_str) = args.get(0) else { - println!("No address"); - return; - }; - let Ok(address) = parse_usize(address_str) else { - println!("Bad address"); - return; - }; - let Some(mut hex_str) = args.get(1).cloned() else { - println!("No hex"); - return; - }; - - let mut address = address as *mut u8; - let mut count = 0; - loop { - let Some(hex_byte) = hex_str.get(0..2) else { - println!("Bad hex from {:?}", hex_str); - return; - }; - hex_str = &hex_str[2..]; - let Ok(byte) = u8::from_str_radix(hex_byte, 16) else { - println!("Bad hex {:?}", hex_byte); - return; - }; - - unsafe { - address.write_volatile(byte); - address = address.offset(1); - } - count += 1; - - println!("Loaded {} bytes", count); - } -} - #[allow(unused)] #[repr(C)] pub struct Api { @@ -170,6 +114,7 @@ fn run(_menu: &menu::Menu, _item: &menu::Item, _args: &[&str], _ctx: & let code: extern "C" fn(*const Api) -> u32 = ::core::mem::transmute(start_ptr); code(&CALLBACK_TABLE) }; + println!(); if result != 0 { println!("Got error code {}", result); } From ff24a413e7e7c6cccc591b00c8b91e38f3aaac28 Mon Sep 17 00:00:00 2001 From: Jonathan 'theJPster' Pallant Date: Fri, 19 May 2023 20:41:31 +0100 Subject: [PATCH 6/7] Fix desktop build --- src/commands/fs.rs | 1 + src/commands/ram.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/commands/fs.rs b/src/commands/fs.rs index 97ab059..fae0138 100644 --- a/src/commands/fs.rs +++ b/src/commands/fs.rs @@ -14,6 +14,7 @@ pub static DIR_ITEM: menu::Item = menu::Item { help: Some("Dir the root directory on block device 0"), }; +#[cfg(target_os = "none")] pub static LOAD_ITEM: menu::Item = menu::Item { item_type: menu::ItemType::Callback { function: load, diff --git a/src/commands/ram.rs b/src/commands/ram.rs index 5d4ca37..5527bfd 100644 --- a/src/commands/ram.rs +++ b/src/commands/ram.rs @@ -87,8 +87,10 @@ pub struct Api { pub print: extern "C" fn(data: *const u8, len: usize), } +#[allow(unused)] static CALLBACK_TABLE: Api = Api { print: print_fn }; +#[allow(unused)] extern "C" fn print_fn(data: *const u8, len: usize) { let slice = unsafe { core::slice::from_raw_parts(data, len) }; if let Ok(s) = core::str::from_utf8(slice) { From a7fe432728875894deb73fb9dcc07c81768adfee Mon Sep 17 00:00:00 2001 From: Jonathan 'theJPster' Pallant Date: Mon, 22 May 2023 19:23:09 +0100 Subject: [PATCH 7/7] Use released embedded-sdmmc. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5a99ecc..a070592 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,4 +45,4 @@ postcard = "0.5" serde = { version = "1.0", default-features = false } menu = "0.3" chrono = { version = "0.4", default-features = false } -embedded-sdmmc = { git = "https://github.com/rust-embedded-community/embedded-sdmmc-rs.git", branch="more-api-cleanups", default-features = false } +embedded-sdmmc = { version = "0.5", default-features = false }