Registry / other / nrf52840-pac

nrf52840-pac

JSON →
library0.12.2rscratesunverified

Peripheral Access Crate for Nordic's nrf52840 microcontroller, providing low-level hardware access.

# Cargo.toml [dependencies] nrf52840-pac = "0.12.2"
INSTALL
IMPORT
SIG · NRF52840-PAC
N
nrf52840-pac
otherrustv0.12.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Peripherals
✓ use nrf52840_pac::Peripherals;

Take ownership of the nRF52840 peripherals.

use nrf52840_pac::Peripherals; fn main() { let periph = Peripherals::take().unwrap(); println!("Peripherals acquired: {:?}", periph); }
Debug
Known issues
gotchaRequires `critical-section` feature for safe peripheral access in multi-core or interrupt contexts.
fix
Add `critical-section` feature: `nrf52840-pac = { version = "0.12", features = ["critical-section"] }`
affects: >=0.10.0
Upgrade
Version history
0.12.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
nrf52840-pac — cargo add nrf52840-pac · libregistry