Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Add sector size as constant in trait #26

Open
icewind1991 opened this issue Aug 25, 2020 · 0 comments
Open

Add sector size as constant in trait #26

icewind1991 opened this issue Aug 25, 2020 · 0 comments

Comments

@icewind1991
Copy link

currently the sector size using in erase_sectors is implicit, this makes it hard to write generic code that uses the flash traits since it can't know how many sectors it needs to erase for a given write.

Adding the sector size as an associated constant to the BlockDevice trait would allow writing proper generic code that uses the flash traits.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant