| Crates.io | ra6m3-fsp-pac |
| lib.rs | ra6m3-fsp-pac |
| version | 0.1.10 |
| created_at | 2025-05-22 13:52:07.718419+00 |
| updated_at | 2025-07-23 15:05:48.442232+00 |
| description | Peripheral access API for RA6M3 microcontrollers (generated using svd2rust) |
| homepage | |
| repository | https://github.com/ra-rs/ra |
| max_upload_size | |
| id | 1685146 |
| size | 9,176,163 |
RA6M3 Peripheral Access CrateA Peripheral Access API (PAC) for RA6M3 microcontrollers, generated using svd2rust.
This crate provides low‑level register and bitfield definitions for all on‑chip peripherals.
It is designed to preserve the familiar cortex-m-rt interface while handling RA6M3‑specific initialization requirements.
rt: Includes IV in ".application_vectors" section. Does not enable any runtime. Either use ra-fsp-sys or cortex-m-rt/device.fsp: places IV in ".application_vectors" section. You still need to add ra-fsp-sys/ra6m3 or ra-fsp-rs/ra6m3 crate to your dependencies.cortex-m-rt-device: places IV in ".vector_table.interrupts" section and enables cortex-m-rt/device feature.Add this crate to your Cargo.toml:
[dependencies]
ra6m3_pac = "0.*"
To enable the FSP‑based runtime:
# If you want to use `ra-fsp-rs`
[dependencies]
ra-fsp-rs = { version = "0.*", features = ["ra6m3"] }
# If you want to use bare bindings
[dependencies]
ra6m3_pac = { version = "0.*", features = ["rt", "fsp"] }
ra-fsp-sys = { version = "0.*", features = ["ra6m3"] }
This PAC has equivalent interface to any cortex-m-rt/device-compatible PAC, thus
the code is looking exactly the same. You can use an OS like RTIC or just:
#![no_std]
#![no_main]
use cortex_m_rt::entry;
use ra6m3_pac::Peripherals;
#[entry]
fn main() -> ! {
let p = Peripherals::take().unwrap();
// Configure and use peripherals...
loop {}
}
Note: FSP manages interrupt vectors, invokes
SystemInit, and
then callsmain.cortex-m-rt::entrycan still be used, butcortex-m-rt/device
feature cannot be enabled, asFSPis responsible for the vector table andReset.
Contributions are welcome! Please open an issue or pull request in this repository. Follow these guidelines:
Licensed under either of
at your option.