The proc macros entry and interrupt are modified to allow the main and interrupt handling functions to accept a single CriticalSection parameter. This change, along with a new enable_with_cs(CriticalSection) API that I've yet to implement, allows interrupts to be enabled safely from any context and reduces unnecessary calls to interrupt::free. Additionally, the old function signatures still work, so this is not a breaking change.
The proc macros
entry
andinterrupt
are modified to allow the main and interrupt handling functions to accept a singleCriticalSection
parameter. This change, along with a newenable_with_cs(CriticalSection)
API that I've yet to implement, allows interrupts to be enabled safely from any context and reduces unnecessary calls tointerrupt::free
. Additionally, the old function signatures still work, so this is not a breaking change.