Crates.io | rp2040 |
lib.rs | rp2040 |
version | 0.1.0 |
source | src |
created_at | 2021-01-22 12:40:12.595048 |
updated_at | 2021-01-22 12:40:12.595048 |
description | Peripheral access API for rp2040 microcontrollers (generated using svd2rust) |
homepage | https://github.com/jannic/rp-microcontroller-rs/ |
repository | https://github.com/jannic/rp-microcontroller-rs/ |
max_upload_size | |
id | 345302 |
size | 5,491,064 |
rp2040
Peripheral access crate for the rp2040 microcontroller
This crate contains low-level register mappings for the rp2040 microcontroller. It's auto-generated from the svd file.
To generate the rust source code, some tools are necessary.
Once they are installed, use generate.sh
to call svd2rust
and
format the source code using form
.
cargo install svd2rust
cargo install form
sh generate.sh
Afterwards, the crate can be compiled:
cargo build --target thumbv6m-none-eabi
The register definition file rp2040.svd
was downloaded from the
raspberrypi/pico-sdk repo.
It is Copyright 2020 (c) 2020 Raspberry Pi (Trading) Ltd. and is licensed
under the BSD-3-Clause License.
The rest of this repository is licensed under the terms of both the MIT license and the Apache License (Version 2.0), at your option.