Add ATtiny202 support
All of the svd patches are in patch/common/attiny-0-series.yaml which should
work for all of the 0-series (but may only work for ATtiny20* and ATtiny40*,
but not 80* or 160* given how the datasheet is split)
Add AT90USB1286 support
Ref: #80
Add attiny841 and attiny861
Replace gen-intr-lut.sh sed hack with svdtools
svdtools comes with a command to list all interrupts
from an SVD file. Use this instead of fragile sed magic
which parses the generated rust code.
Add basic support for ATmega4809
Add support for atmega328pb
Add basic support for ATmega644
Add support for the ATtiny84
Add atmega48p device support
make: Properly remove 'extern crate' lines
The previous sed expression would remove arbitrary lines which can break
easily. Instead, only remove actual extern crate lines.
This will provide a seamless upgrade to the next svd2rust version which
contains commit 85615cb0bbc8 ("Use and generate code for Edition 2018
only ") and thus no longer emits 'extern crate' lines.
Signed-off-by: Rahix <rahix@rahix.de>
Add basic support for ATmega168
makefile: also clean generic.rs
makefile: all and clean are .PHONY
Add support for ATmega2560
make: Allow overriding rustup toolchain
Allow overriding the rustup toolchain used for rustfmt by invoking make
like this:
make RUSTUP_TOOLCHAIN=nightly-2020-07-12
This will (hopefully) help when working with nightly versions where
rustfmt is unavailable.
Signed-off-by: Rahix <rahix@rahix.de>
Add basic support for ATmega64
Pull in the ATDF file from Microchip and add all the necessary plumbing
around the code-base to make it compile. Not tested against real
hardware and no device-specific patches are included yet.
Signed-off-by: Rahix <rahix@rahix.de>