Skip to content

Commit 2aa9f8a

Browse files
jonathanpallanteldruin
authored andcommitted
Rename sdmmc as sdcard.
Matches the name of the primary type contained within it.
1 parent 2e7dd74 commit 2aa9f8a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
//! # impl std::fmt::Write for DummyUart { fn write_str(&mut self, s: &str) -> std::fmt::Result { Ok(()) } }
3737
//! # use std::fmt::Write;
3838
//! # use embedded_sdmmc::VolumeManager;
39-
//! # fn main() -> Result<(), embedded_sdmmc::Error<embedded_sdmmc::SdMmcError>> {
39+
//! # fn main() -> Result<(), embedded_sdmmc::Error<embedded_sdmmc::SdCardError>> {
4040
//! # let mut sdmmc_spi = DummySpi;
4141
//! # let mut sdmmc_cs = DummyCsPin;
4242
//! # let time_source = DummyTimeSource;
@@ -90,17 +90,16 @@ mod structure;
9090
pub mod blockdevice;
9191
pub mod fat;
9292
pub mod filesystem;
93-
pub mod sdmmc;
94-
pub mod sdmmc_proto;
93+
pub mod sdcard;
9594

9695
pub use crate::blockdevice::{Block, BlockCount, BlockDevice, BlockIdx};
9796
pub use crate::fat::FatVolume;
9897
pub use crate::filesystem::{
9998
Attributes, Cluster, DirEntry, Directory, File, FilenameError, Mode, ShortFileName, TimeSource,
10099
Timestamp, MAX_FILE_SIZE,
101100
};
102-
pub use crate::sdmmc::Error as SdMmcError;
103-
pub use crate::sdmmc::SdCard;
101+
pub use crate::sdcard::Error as SdCardError;
102+
pub use crate::sdcard::SdCard;
104103

105104
mod volume_mgr;
106105
pub use volume_mgr::VolumeManager;

src/sdmmc.rs renamed to src/sdcard/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
//! This is currently optimised for readability and debugability, not
66
//! performance.
77
8-
use super::sdmmc_proto::*;
8+
pub mod proto;
9+
910
use super::{Block, BlockCount, BlockDevice, BlockIdx};
1011
use core::cell::RefCell;
12+
use proto::*;
1113

1214
// =============================================================================
1315
// Imports
File renamed without changes.

0 commit comments

Comments
 (0)