-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Labels
A-documentationArea: DocumentationArea: Documentation
Description
NVIC::enable()
was deprecated with the following warning.
WARNING This method is a soundness hole in the API; it should actually be an unsafe function. Use NVIC::unmask which has the right unsafety.
https://docs.rs/stm32f3xx-hal/0.3.0/stm32f3xx_hal/stm32/struct.NVIC.html#method.enable
NVIC::unmask()
has the following documentation.
This function is unsafe because it can break mask-based critical sections
https://docs.rs/stm32f3xx-hal/0.3.0/stm32f3xx_hal/stm32/struct.NVIC.html#method.unmask
This isn't sufficient information for someone to know how they can soundly call the unmask
function to enable interrupts. The documentation should include a # Safety
section per the API guidelines describing the invariants the caller is expected to uphold.
honzasp and N-T-K
Metadata
Metadata
Assignees
Labels
A-documentationArea: DocumentationArea: Documentation