Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get EC ROM size #100

Open
crawfxrd opened this issue Feb 12, 2024 · 0 comments
Open

Get EC ROM size #100

crawfxrd opened this issue Feb 12, 2024 · 0 comments

Comments

@crawfxrd
Copy link
Member

addw4 switched to the 256 KiB variant of the chip.

Get the real ROM size instead of hard-coding it to 128 KiB

fn rom_size(&self) -> usize {
128 * 1024
}
fn block_size(&self) -> usize {
64 * 1024
}
fn page_size(&self) -> usize {
256
}

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

No branches or pull requests

1 participant