| Crates.io | rp2040-rom |
| lib.rs | rp2040-rom |
| version | 0.1.3 |
| created_at | 2025-02-25 09:43:58.655445+00 |
| updated_at | 2025-03-16 18:58:04.677276+00 |
| description | Access to Raspberry Pi RP2040 ROM functions from Rust |
| homepage | |
| repository | https://github.com/piersfinlayson/rp2040-rom |
| max_upload_size | |
| id | 1568980 |
| size | 8,929 |
A lightweight Rust crate providing safe access to Raspberry Pi RP2040 ROM functions.
reset_usb_boot: Reset the chip and enter USB bootloader (DFU) modeAdd this to your Cargo.toml:
[dependencies]
rp2040-rom = "0.1.0"
use rp2040_rom::ROM;
// Reset into USB bootloader (DFU) mode
unsafe {
ROM::reset_usb_boot(0, 0);
}
All ROM functions are marked as unsafe because:
For more details on the RP2040 ROM functions, see the RP2040 Datasheet.
Licensed under MIT License.