rp-rs / rp2040-pac

A Rust PAC for the RP2040 Microcontroller
142 stars 28 forks source link

Add unused IRQs as software IRQs #60

Closed 9names closed 2 years ago

9names commented 2 years ago

The upper 6 interrupts in each NVIC are not connected to hardware, but could still be used for software IRQ (for example, RTIC can use these for software tasks). Interrupts have to live under a peripheral, so I added SW_IRQ at address 0x0 to group them under. Since there a no fields in this peripheral it should not matter what the address is, if I understand it correctly. We could also append them to an existing peripheral if this is a concern. This was brought up in #236