mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Update and move readmes
The READMEs that go to crates.io need to be in the crate dir
This commit is contained in:
parent
db7217192a
commit
216aad2c76
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
.idea/
|
.idea/
|
||||||
target
|
target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
.vscode
|
||||||
|
|
71
README.md
71
README.md
|
@ -8,7 +8,7 @@
|
||||||
<h3 align="center">rp-hal</h3>
|
<h3 align="center">rp-hal</h3>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
A Rust HAL impl for the RP family of microcontrollers from the Raspberry Pi Foundation
|
A Rust HAL and board support packages for the RP family of microcontrollers from the Raspberry Pi Foundation
|
||||||
<br />
|
<br />
|
||||||
<a href="https://github.com/rp-rs/rp-hal"><strong>Explore the docs »</strong></a>
|
<a href="https://github.com/rp-rs/rp-hal"><strong>Explore the docs »</strong></a>
|
||||||
<br />
|
<br />
|
||||||
|
@ -27,14 +27,7 @@
|
||||||
<details open="open">
|
<details open="open">
|
||||||
<summary><h2 style="display: inline-block">Table of Contents</h2></summary>
|
<summary><h2 style="display: inline-block">Table of Contents</h2></summary>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li><a href="#packages">Packages</a></li>
|
||||||
<a href="#getting-started">Getting Started</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#prerequisites">Prerequisites</a></li>
|
|
||||||
<li><a href="#installation">Installation</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#usage">Usage</a></li>
|
|
||||||
<li><a href="#roadmap">Roadmap</a></li>
|
<li><a href="#roadmap">Roadmap</a></li>
|
||||||
<li><a href="#contributing">Contributing</a></li>
|
<li><a href="#contributing">Contributing</a></li>
|
||||||
<li><a href="#license">License</a></li>
|
<li><a href="#license">License</a></li>
|
||||||
|
@ -44,61 +37,21 @@
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<!-- GETTING STARTED -->
|
<!-- GETTING STARTED -->
|
||||||
## Getting Started
|
## Packages
|
||||||
|
|
||||||
To get a local copy up and running follow these simple steps.
|
- [rp2040-hal](https://github.com/rp-rs/rp-hal/tree/main/rp2040-hal)
|
||||||
|
- Board Support Packages:
|
||||||
|
- [Adafruit Macropad](https://github.com/rp-rs/rp-hal/tree/main/boards/adafruit_macropad)
|
||||||
|
- [Adafruit Feather RP2040](https://github.com/rp-rs/rp-hal/tree/main/boards/feather_rp2040)
|
||||||
|
- [Raspberry Pi Pico](https://github.com/rp-rs/rp-hal/tree/main/boards/pico)
|
||||||
|
- [Pimoroni Pico Explorer](https://github.com/rp-rs/rp-hal/tree/main/boards/pico_explorer)
|
||||||
|
- [Pimoroni Pico Lipo 16mb](https://github.com/rp-rs/rp-hal/tree/main/boards/pico_lipo_16mb)
|
||||||
|
|
||||||
### Prerequisites
|
|
||||||
|
|
||||||
* A [Rust](https://www.rust-lang.org/tools/install) toolchain
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
|
|
||||||
1. Clone the repo or use the crate
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git clone https://github.com/rp-rs/rp-hal
|
|
||||||
```
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cargo install rpXXXX-hal
|
|
||||||
```
|
|
||||||
|
|
||||||
<!-- USAGE EXAMPLES -->
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
|
|
||||||
|
|
||||||
For more examples, please refer to the [Documentation](https://github.com/rp-rs/rp-hal)
|
|
||||||
|
|
||||||
### Run examples
|
|
||||||
|
|
||||||
#### UF2
|
|
||||||
|
|
||||||
For boards with uf2 flashloaders like the raspberry pi pico. Install [`elf2uf2-rs`](https://github.com/JoNil/elf2uf2-rs):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cargo install elf2uf2-rs
|
|
||||||
```
|
|
||||||
|
|
||||||
Make sure .cargo/config contains the following (it should by default):
|
|
||||||
|
|
||||||
```toml
|
|
||||||
runner = "elf2uf2-rs -d"
|
|
||||||
```
|
|
||||||
|
|
||||||
**IMPORTANT: Make sure you've put your device into bootloader mode and the drive is showing as mounted before executing the next command.**
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cargo run --example pico_pwm_blink # Run `cargo run --example` for more examples
|
|
||||||
```
|
|
||||||
|
|
||||||
<!-- ROADMAP -->
|
<!-- ROADMAP -->
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
NOTE This HAL is under active development. As such, it is likely to remain volatile until a 1.0.0 release.
|
NOTE These packages are under active development. As such, it is likely to remain volatile until a 1.0.0 release.
|
||||||
|
|
||||||
See the [open issues](https://github.com/rp-rs/rp-hal/issues) for a list of proposed features (and known issues).
|
See the [open issues](https://github.com/rp-rs/rp-hal/issues) for a list of proposed features (and known issues).
|
||||||
|
|
||||||
|
@ -127,7 +80,7 @@ Distributed under the MIT OR Apache2.0 License. See `MIT` or `APACHE2.0` for mor
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
Project Link: [https://github.com/rp-rs/rp-hal/issues](https://github.com/rp-rs/rp-hal/issues)
|
Project Link: [https://github.com/rp-rs/rp-hal/issues](https://github.com/rp-rs/rp-hal/issues)
|
||||||
|
Matrix: [#rp-rs:matrix.org](https://matrix.to/#/#rp-rs:matrix.org)
|
||||||
|
|
||||||
|
|
||||||
<!-- ACKNOWLEDGEMENTS -->
|
<!-- ACKNOWLEDGEMENTS -->
|
||||||
|
|
|
@ -3,6 +3,7 @@ name = "adafruit_macropad"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Andrea Nall <anall@andreanal.com>"]
|
authors = ["Andrea Nall <anall@andreanal.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
homepage = "https://github.com/rp-rs/rp-hal/boards/adafruit_macropad"
|
||||||
description = "Board Support Package for the Adafruit Macropad"
|
description = "Board Support Package for the Adafruit Macropad"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
|
|
1
boards/adafruit_macropad/README.md
Normal file
1
boards/adafruit_macropad/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Adafruit Macropad Board Support Crate
|
1
boards/pico_explorer/README.md
Normal file
1
boards/pico_explorer/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Pimoroni Pico Explorer Board Support Crate
|
1
boards/pico_lipo_16mb/README.md
Normal file
1
boards/pico_lipo_16mb/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Pimoroni Pico Lipo 16mb Board Support Crate
|
|
@ -3,7 +3,7 @@ name = "rp2040-hal"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
authors = ["evan <evanmolder@gmail.com>"]
|
authors = ["evan <evanmolder@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
homepage = "https://github.com/rp-rs/rp-hal/boards/pico-bsc"
|
homepage = "https://github.com/rp-rs/rp-hal"
|
||||||
description = "A Rust Embeded-HAL impl for the rp2040 microcontroller"
|
description = "A Rust Embeded-HAL impl for the rp2040 microcontroller"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
|
|
136
rp2040-hal/README.md
Normal file
136
rp2040-hal/README.md
Normal file
|
@ -0,0 +1,136 @@
|
||||||
|
<!-- PROJECT LOGO -->
|
||||||
|
<br />
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/rp-rs/rp2040-hal">
|
||||||
|
<img src="https://www.svgrepo.com/show/281119/microchip.svg" alt="Logo" width="140" height="140">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<h3 align="center">rp-hal</h3>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
A Rust HAL impl for the RP family of microcontrollers from the Raspberry Pi Foundation
|
||||||
|
<br />
|
||||||
|
<a href="https://github.com/rp-rs/rp-hal"><strong>Explore the docs »</strong></a>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<a href="https://github.com/rp-rs/rp-hal">View Demo</a>
|
||||||
|
·
|
||||||
|
<a href="https://github.com/rp-rs/rp-hal/issues">Report Bug</a>
|
||||||
|
·
|
||||||
|
<a href="https://github.com/rp-rs/rp-hal/issues">Request Feature</a>
|
||||||
|
</p>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- TABLE OF CONTENTS -->
|
||||||
|
<details open="open">
|
||||||
|
<summary><h2 style="display: inline-block">Table of Contents</h2></summary>
|
||||||
|
<ol>
|
||||||
|
<li>
|
||||||
|
<a href="#getting-started">Getting Started</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#prerequisites">Prerequisites</a></li>
|
||||||
|
<li><a href="#installation">Installation</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#usage">Usage</a></li>
|
||||||
|
<li><a href="#roadmap">Roadmap</a></li>
|
||||||
|
<li><a href="#contributing">Contributing</a></li>
|
||||||
|
<li><a href="#license">License</a></li>
|
||||||
|
<li><a href="#contact">Contact</a></li>
|
||||||
|
<li><a href="#acknowledgements">Acknowledgements</a></li>
|
||||||
|
</ol>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<!-- GETTING STARTED -->
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
To get a local copy up and running follow these simple steps.
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
* A [Rust](https://www.rust-lang.org/tools/install) toolchain
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. Clone the repo or use the crate
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/rp-rs/rp-hal
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo install rp2040-hal
|
||||||
|
```
|
||||||
|
|
||||||
|
<!-- USAGE EXAMPLES -->
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
|
||||||
|
|
||||||
|
For more examples, please refer to the [Documentation](https://github.com/rp-rs/rp-hal)
|
||||||
|
|
||||||
|
### Run examples
|
||||||
|
|
||||||
|
#### UF2
|
||||||
|
|
||||||
|
For boards with uf2 flashloaders like the raspberry pi pico. Install [`elf2uf2-rs`](https://github.com/JoNil/elf2uf2-rs):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo install elf2uf2-rs
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure .cargo/config contains the following (it should by default):
|
||||||
|
|
||||||
|
```toml
|
||||||
|
runner = "elf2uf2-rs -d"
|
||||||
|
```
|
||||||
|
|
||||||
|
**IMPORTANT: Make sure you've put your device into bootloader mode and the drive is showing as mounted before executing the next command.**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo run --example pico_pwm_blink # Run `cargo run --example` for more examples
|
||||||
|
```
|
||||||
|
|
||||||
|
<!-- ROADMAP -->
|
||||||
|
## Roadmap
|
||||||
|
|
||||||
|
NOTE This HAL is under active development. As such, it is likely to remain volatile until a 1.0.0 release.
|
||||||
|
|
||||||
|
See the [open issues](https://github.com/rp-rs/rp-hal/issues) for a list of proposed features (and known issues).
|
||||||
|
|
||||||
|
|
||||||
|
<!-- CONTRIBUTING -->
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
|
||||||
|
|
||||||
|
1. Fork the Project
|
||||||
|
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
||||||
|
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
||||||
|
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
||||||
|
5. Open a Pull Request
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- LICENSE -->
|
||||||
|
## License
|
||||||
|
|
||||||
|
Distributed under the MIT OR Apache2.0 License. See `MIT` or `APACHE2.0` for more information.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- CONTACT -->
|
||||||
|
## Contact
|
||||||
|
|
||||||
|
Project Link: [https://github.com/rp-rs/rp-hal/issues](https://github.com/rp-rs/rp-hal/issues)
|
||||||
|
Matrix: [#rp-rs:matrix.org](https://matrix.to/#/#rp-rs:matrix.org)
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ACKNOWLEDGEMENTS -->
|
||||||
|
## Acknowledgements
|
||||||
|
|
||||||
|
* [Othneil Drew's README template](https://github.com/othneildrew)
|
Loading…
Reference in a new issue