Remove IRQ enable / disable in EEPROM module #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
__enable_irq()
would be written in Rust asThis call is
unsafe
for good reason: it could break critical sections that runtimes like RTIC are expected to control. A resulting race condition would be particularly gnarly to track down.The
__disable_irq()
would be safe, but we should generally let Rust code -- specifically, the owner of theEeprom
object -- manage interrupts if they need.I want to emphasize that, when it was originally prototyped, I did not review this C code for suitability in teensy4-bsp. Furthermore, I did not review this code for suitability in the Aqueduct system. My scope was to integrate the C code, and I'm assuming that Aqueduct is comfortable with the license associated with this C code.