~ruther/avr-device

ref: b0abe893ed36425cfd63bbe5a9d0881bcee053cb avr-device/Makefile -rw-r--r-- 2.1 KiB
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>
dc45b3cc — Rahix 5 years ago
Switch to a new design as outlined in #17

Signed-off-by: Rahix <rahix@rahix.de>
90e0982f — Rahix 5 years ago
Use nightly rustfmt

Signed-off-by: Rahix <rahix@rahix.de>
4f73fe2e — Gabriel Pickl 5 years ago
Added atmega1280.
7818dda6 — Rahix 5 years ago
make: Make sed usage more portable

fixes #5

Signed-off-by: Rahix <rahix@rahix.de>
3b582371 — Rahix 5 years ago
make: Add targets for individual chips

Signed-off-by: Rahix <rahix@rahix.de>
6c665e4d — Rahix 5 years ago
make: Fix dependencies of patch files

Signed-off-by: Rahix <rahix@rahix.de>
c15bfe54 — octycs 5 years ago
Integrate patching in the build process
34861ead — Filip 5 years ago
Add support for atmega8

Signed-off-by: Filip <filip.skubacz.public@gmail.com>
8b1679a8 — Rahix 5 years ago
Add support for atmega328p

Signed-off-by: Rahix <rahix@rahix.de>
769efac4 — Rahix 5 years ago
Initial
Do not follow this link