An open API service indexing awesome lists of open source software.

https://github.com/dflemstr/mimxrt1062


https://github.com/dflemstr/mimxrt1062

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# mimxrt1062
This crate provides an autogenerated API for access to MIMXRT1062 peripherals.
The API is generated using [svd2rust] with patched svd files containing
extensive type-safe support.

Refer to the [documentation] for full details.

[svd2rust]: https://github.com/japaric/svd2rust
[documentation]: https://docs.rs/mimxrt1062/latest/mimxrt1062/

## Usage

To use, in your Cargo.toml:

```toml
[dependencies.mimxrt1062]
version = "0.1.0"
features = ["rt"]
```

The `rt` feature is optional and brings in support for `cortex-m-rt`.

In your code:

```rust
use mimxrt1062;

let mut peripherals = mimxrt1062::Peripherals::take().unwrap();
```

For full details on the autogenerated API, please see:
https://docs.rs/svd2rust/0.16.1/svd2rust/#peripheral-api