avr-hal... Sorry :(
avr-halrecently... Maybe check https://github.com/Rahix/avr-hal#repository-structure to familiarize yourself with the new layout if you intend to update your own projects)
cargo generate --git https://github.com/Rahix/avr-hal-template.git --branch wipand then selecting
Nano168as the board. If I didn't mess anything up,
cargo runshould be enough with that to make your board blink (might need to set a port with
cargo run -- -P /dev/ttyFOO).
cargo run --bin test-nano168 Finished dev [optimized + debuginfo] target(s) in 0.02s Running `ravedude nano168 -cb 57600 -P /dev/ttyUSB0 target/avr-atmega168/debug/test-nano168.elf` Board Nano Clone (ATmega168) Programming target/avr-atmega168/debug/test-nano168.elf => /dev/ttyUSB0
cargo run(after I pasted the code from your example)
profile=minimalin toolchain.toml do?
ufmt::uwriteln!so whenever I open a project or file depending on avr-hal it is complaining about so many problems.
avr-hal-genericgeneric to allow a corresponding implementation in
avr-hal-generic, though I think I've already successfully teased that apart.