~ruther/avr-device

ref: 296a1fbc14f3ad16ad43edfd0d52a7fed490923c avr-device/src/lib.rs -rw-r--r-- 2.8 KiB
1e0eb40c — Andrew Dona-Couch 4 years ago
Add support for ATmega2560
cb089e6c — Rahix 4 years ago
Document #[interrupt] and #[entry]

Signed-off-by: Rahix <rahix@rahix.de>
27392685 — Rahix 4 years ago
macros: Add a #[entry] macro

Add a #[entry] macro for declaring the entry-point of the program,
similar to what cortex-m-rt is doing.

Signed-off-by: Rahix <rahix@rahix.de>
c3144637 — Liam Perlaki 4 years ago
Use llvm_asm!() instead of asm!()

The asm!() feature was changed to a new syntax which this project did not yet
adopt.  The old asm!() is now available as llvm_asm!().  Switch to that to
support nightly build.

See PR #27 for details.
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>
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>
f77864dc — Rahix 5 years ago
hack: Make sure you cannot build for more than one chip

Signed-off-by: Rahix <rahix@rahix.de>
160cfaad — Rahix 5 years ago
atmega1280: Add missing Peripherals::take()

Signed-off-by: Rahix <rahix@rahix.de>
4f73fe2e — Gabriel Pickl 5 years ago
Added atmega1280.
1d62dc82 — Rahix 5 years ago
Fix mistake in lib.rs

Signed-off-by: Rahix <rahix@rahix.de>
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>
4d71c0ee — Rahix 5 years ago
Add interrupts and use cfg-if

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