You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hardware Abstraction Layer for AVR microcontrollers and common boards (for example Arduino). Based on the [`avr-device`](https://github.com/Rahix/avr-device) crate.
4
4
5
5
## Quickstart
6
-
You need a nightly Rust compiler for compiling Rust code for AVR. The correct version will be installed automatically due to the `rust-toolchain.toml` file.
6
+
You need a nightly Rust compiler for compiling Rust code for AVR. The correct version will be installed automatically thanks to the `rust-toolchain.toml` file.
7
7
8
8
Install dependencies:
9
9
@@ -23,7 +23,7 @@ Install dependencies:
23
23
```
24
24
winget install AVRDudes.AVRDUDE ZakKemble.avr-gcc
25
25
```
26
-
On older systems you can use [Scoop](https://scoop.sh/) which you first have to install using Powershell:
26
+
On older systems, you can use [Scoop](https://scoop.sh/) which you first have to install using PowerShell:
27
27
```PowerShell
28
28
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Needed to run a remote script the first time
29
29
irm get.scoop.sh | iex
@@ -35,7 +35,7 @@ Install dependencies:
35
35
```
36
36
See [Setting up environment](https://github.com/Rahix/avr-hal/wiki/Setting-up-environment) for more information.
37
37
38
-
Next, install ["ravedude"](./ravedude), a tool which seamlessly integrates flashing your board into the usual cargo workflow:
38
+
Next, install ["ravedude"](./ravedude), a tool that seamlessly integrates flashing your board into the usual cargo workflow:
39
39
40
40
```bash
41
41
cargo +stable install ravedude
@@ -71,7 +71,7 @@ The [examples directory](./examples) contains lots of examples for common hardwa
71
71
HAL crates for AVR microcontroller families. If you have a custom board, you'll want to work with these crates. Please check their documentation for a list of supported MCUs.
This is a generic crate containing most of the HAL implementations in the form of macros which are instanciated in each HAL crate for the specific MCUs. If you intend to write drivers that work with any AVR chip, targeting `avr-hal-generic` is probably the best route.
74
+
This is a generic crate containing most of the HAL implementations in the form of macros which are instantiated in each HAL crate for the specific MCUs. If you intend to write drivers that work with any AVR chip, targeting `avr-hal-generic` is probably the best route.
`ravedude` is a utility for seamlessly integrating avrdude and a serial console into the cargo workflow. With a bit of configuration (check its [README](./ravedude/README.md)!) you can then upload your code to your board and view its output over the serial console by just using `cargo run` as you would normally.
0 commit comments