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

Add sector size as constant in trait #26

@icewind1991

Description

@icewind1991

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions