~ruther/avr-device

57eef724 — Rahix 5 years ago
Improve build instructions

This commit changes the install-command for rustfmt to explicitly
install the nightly version.  Ref #20.

Signed-off-by: Rahix <rahix@rahix.de>
5cbb4d85 — Rahix 5 years ago
ci: Test-build runtime feature

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>
0c0ed043 — Rahix 5 years ago
ci: Attempt building multple chips at once as well

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>
fb9d2d97 — Rahix 5 years ago
Enable CI

Signed-off-by: Rahix <rahix@rahix.de>
1606c20e — Jonah Dahlquist 5 years ago
common: Fix a few patches

- Fix some descriptions
- Rename ambiguous WDT options
bfbd5bc0 — Jonah Dahlquist 5 years ago
atmega328p: Add missing patches

This commit adds patches for ATmega328P by copying the commons from ATmega32U4, omitting PLL because the 328p lacks that feature (#11)
2f04141d — Gabriel Pickl 5 years ago
atmega1280: Add remaining common patches

1726a5ee — Rahix 5 years ago
atmega1280: Factor out USART into a common patch

Signed-off-by: Rahix <rahix@rahix.de>
d2565cad — Gabriel Pickl 5 years ago
Add USART1 patch to atmega1280.
90e0982f — Rahix 5 years ago
Use nightly rustfmt

Signed-off-by: Rahix <rahix@rahix.de>
b11ae983 — Rahix 5 years ago
Add build-script to auto-generate chip-defs

Signed-off-by: Rahix <rahix@rahix.de>
00e05646 — Rahix 5 years ago
atmega32u4, attiny85: Add tc0 patch

Signed-off-by: Rahix <rahix@rahix.de>
c041f10a — Rahix 5 years ago
Add _write_constraint to README

Signed-off-by: Rahix <rahix@rahix.de>
0806f412 — Rahix 5 years ago
svdpatch: Add _write_constraint modifier

"_write_constraint" allows to change the write-constraint
to one of:

- "enum": Allow only enumerated values (useEnumeratedValues)
- "none": Completely remove the <writeConstraint> tag
- [min, max]: Allow only values in a certain range (this can
  be used to make the bits() method safe)

Fixes #8

Signed-off-by: Rahix <rahix@rahix.de>
aae9508c — Rahix 5 years ago
common: Add some comments to the patch files

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