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

[GPIO] raise bus exception if writing to INPUT registers #255

Merged
merged 4 commits into from
Jan 14, 2022

Conversation

stnolting
Copy link
Owner

This PR modifies the GPIO module to raise a store bus access error exception if software tries to write to the read-only INPUT registers (NEORV32_GPIO.INPUT_LO and NEORV32_GPIO.INPUT_HI). The BUSKEEPER will indidcate a device error ("DEVICE_ERR") in this case.

Any write access to the INPUT register will raise a bus exception.
@stnolting stnolting added enhancement New feature or request HW Hardware-related labels Jan 14, 2022
@stnolting stnolting self-assigned this Jan 14, 2022
@stnolting stnolting marked this pull request as ready for review January 14, 2022 05:13
@stnolting stnolting merged commit b65693d into master Jan 14, 2022
@stnolting stnolting deleted the gpio_input_ro branch January 14, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HW Hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant