rust-embedded / cortex-m-rt

Minimal startup / runtime for Cortex-M microcontrollers
https://rust-embedded.github.io/cortex-m-rt/
Apache License 2.0
358 stars 85 forks source link

[wip] implement the new attribute syntax #313

Closed jonas-schievink closed 10 months ago

rust-highfive commented 3 years ago

r? @therealprof

(rust-highfive has picked a reviewer for you, use r? to override)

Dirbaio commented 3 years ago

Should resources on interrupt handlers require Send? You can change the priority of an interrupt at runtime, effectively "sending" the resource values from one priority level to another.

Also, can the DefaultHandler have resources? I think that's unsound because it can run reentrantly if there are 2 interrupts at different priority without a handler set.