cargo generate --git https://github.com/Rahix/avr-hal-template.git --branch wip
and then selecting Nano168
as the board. If I didn't mess anything up, cargo run
should 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=minimal
in toolchain.toml do?
ufmt::uwriteln!
so whenever I open a project or file depending on avr-hal it is complaining about so many problems.
atmega-hal
and make avr-hal-generic
generic to allow a corresponding implementation in attiny-hal
adc
module has ReferenceVoltage
baked into avr-hal-generic
, though I think I've already successfully teased that apart.