~ruther/avr-device

ref: b0abe893ed36425cfd63bbe5a9d0881bcee053cb avr-device/gen-intr-lut.sh -rwxr-xr-x 619 bytes
25305d5b — Rahix 4 years ago
interrupts: Fix sed expressions for parsing interrupt list

The format for the interrupt sources changed which silently made
gen-intr-lut.sh no longer generate any interrupt names.  Fix the
expressions so interrupt names are recognized again and the macro
can be used for generating interrupt definitions again.

Signed-off-by: Rahix <rahix@rahix.de>
6f0b1cc9 — Rahix 5 years ago
gen-intr-lut: Switch to /usr/bin/env bash as interpreter

The location of the `bash` binary can vary between systems.  Switch to
`/usr/bin/env bash` which is the recommended way to do it.

Ref: PR #22

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>
Do not follow this link