book icon indicating copy to clipboard operation
book copied to clipboard

Clarify usage of #[interrupt] attribute and recommend device crate re…

Open HosseinAssaran opened this issue 9 months ago • 3 comments

…-export

HosseinAssaran avatar Mar 11 '25 13:03 HosseinAssaran

Thanks much for this! The text is a definite improvement. I wonder why the code needed to change?

Any chance you could do a similar PR for https://github.com/rust-embedded/discovery-mb2

BartMassey avatar Mar 11 '25 18:03 BartMassey

It demonstrates how to use interrupts and highlights the need to include use device::interrupt. Additionally, since the emulator in this book is based on the LM3S6965, which does not have a TIM2 peripheral but instead provides TIMER2A and TIMER2B, the code must be adapted accordingly.

HosseinAssaran avatar Mar 12 '25 05:03 HosseinAssaran

LGTM

therealprof avatar May 27 '25 18:05 therealprof