A quickstart to using the nrf52832 device on the development board
From the Rust Embedded Book:
the cortex-m-rt crate provides an interrupt attribute to declare interrupt handlers
From the cortex-m-rt docs:
[the interrupt] attribute is exposed by cortex-m-rt only when the device feature is enabled
To enable the interrupt attribute, be sure the following is in the cargo.Toml:
[dependencies.nrf52832-pac]
version = "0.9.0"
features = ["rt"]
[dependencies.cortex-m-rt]
version = "0.6.13"
features = ["device"]
The interrupt attribute is included by :
use nrf52832-pac::interrupt