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

SCB.ICSR is more than 8 bits #314

Closed Dirbaio closed 3 years ago

Dirbaio commented 3 years ago

This code here reads ICSR and casts it to 8 bits. In cortex-m3 it is more than 8 bits because there can be up to 480 interrupts.

https://github.com/rust-embedded/cortex-m-rt/blob/ca4790f40738bcc770285c8080955a2077682078/macros/src/lib.rs#L230

This is the same as https://github.com/rust-embedded/cortex-m/issues/332

adamgreig commented 3 years ago

Closed by #315.