~ruther/avr-device

ref: bc60d30aebf63c25f1357f3ff934e03c95be23ea avr-device/Makefile -rw-r--r-- 2.3 KiB
84f2b651 — David 4 years ago
Add ATmega8U2

397170ad — jaxter184 4 years ago
Add attiny841 and attiny861
0c63ac5c — Jan Paw 4 years ago
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.
d1eed41c — Jan Paw 4 years ago
Add basic support for ATmega4809

ce031034 — Johan Kristell 4 years ago
Add support for atmega328pb
7663529e — Rahix 4 years ago
patch: Switch to upstream svdtools patch tool

Instead of using our locally vendored version of svdpatch, switch to the
upstream version maintained by the stm32-rs project:

    https://github.com/stm32-rs/svdtools

Signed-off-by: Rahix <rahix@rahix.de>
10b826e3 — Boris Vinogradov 4 years ago
Add basic support for ATmega644
f48ac82c — Andrew Dona-Couch 4 years ago
Add support for the ATtiny84
6cd5000d — Boris Vinogradov 4 years ago
Add atmega48p device support
1750924f — Rahix 4 years ago
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>
90075ce5 — Karl ThorĂ©n 4 years ago
Add basic support for ATmega168

00312ea6 — Andrew Dona-Couch 4 years ago
makefile: also clean generic.rs
3b7655f9 — Andrew Dona-Couch 4 years ago
makefile: all and clean are .PHONY
b0abe893 — Andrew Dona-Couch 4 years ago
Add support for ATtiny88
1e0eb40c — Andrew Dona-Couch 4 years ago
Add support for ATmega2560
7113a1e1 — Rahix 4 years ago
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>
29061345 — Rahix 4 years ago
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>
169804d1 — Rahix 5 years ago
make: Use a patchfile instead of weird sed expr

As reported in issue #24 the sed(1) expression used to patch the generated
`mod.rs` does not work on MacOS (BSD sed).  Instead, use patch(1) and a small
patchfile to accomplish the same task.

Signed-off-by: Rahix <rahix@rahix.de>
dbbbc6ef — Rahix 5 years ago
Fix compatibility with svd2rust 1.16.1

svd2rust now generates a module containing generic descriptions which
the individual register definitions are based on.  Fix the code
generation to deal with this module.

Signed-off-by: Rahix <rahix@rahix.de>
88fcf0c8 — Rahix 5 years ago
Implement interrupts

This commit adds a new feature-flag `rt` which, when enabled, adds the
`#[interrupt]` procedural macro to define an interrupt handler.  Unlike
the implementation in cortex-m, this version needs an attribute which is
the name of the chip the interrupt is for.  In code, an interrupt
handler might look like this:

    #![feature(abi_avr_interrupt)]

    #[avr_device::interrupt(atmega32u4)]
    fn INT6() {
        // Do Something
    }

Closes #1.

Signed-off-by: Rahix <rahix@rahix.de>
Next
Do not follow this link