1 unstable release
0.1.0 | Jan 22, 2021 |
---|
#1835 in Hardware support
21 downloads per month
Used in rp-hal
5.5MB
153K
SLoC
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.
Usage
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
License
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.
Dependencies
~0.6–0.8MB
~11K SLoC