You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raw Handles work like the handles we had before.
Smart Handles now hold an &mut VolumeManager. This means they can have
methods, and they also have a Drop implementation. However, the &mut
reference means you are much more limited in how you hold them and how
many you can hold at a time. It's OK for opening a single file but more
than that you you want to use Raw Handles and sort the Drop stuff out
yourself.
All the examples are updated to use Smart Handles.
Copy file name to clipboardExpand all lines: README.md
+8-16Lines changed: 8 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ designed for readability and simplicity over performance.
11
11
You will need something that implements the `BlockDevice` trait, which can read and write the 512-byte blocks (or sectors) from your card. If you were to implement this over USB Mass Storage, there's no reason this crate couldn't work with a USB Thumb Drive, but we only supply a `BlockDevice` suitable for reading SD and SDHC cards over SPI.
12
12
13
13
```rust
14
-
// Build an SD Card interface out of an SPI device, a chip-select pin and a delay object
14
+
// Build an SD Card interface out of an SPI device, a chip-select pin and the delay object
0 commit comments