~ruther/avr-device

2e7dc52c — Andrew Dona-Couch 4 years ago
Fix typo in ATtiny85 docs
a75b9d51 — Rahix 4 years ago
Update CHANGELOG
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>
12879fde — Rahix 4 years ago
Only emit inline-assembly when building for AVR

Make sure that we'll never emit AVR assembly on non-AVR targets.
Instead of failing the build, fail at runtime, to allow a potential
application testsuite to run even if those functions somehow get linked
in.

Signed-off-by: Rahix <rahix@rahix.de>
91f3ea8a — lights0123 4 years ago
Cause an error in the #[entry] macro instead of avr-device
90075ce5 — Karl ThorĂ©n 4 years ago
Add basic support for ATmega168

203ca2d4 — Andrew Dona-Couch -- GitHub drop ICE 4 years ago
Fix Changelog link
ce2d815c — Rahix 4 years ago
Prepare 0.2.1

Signed-off-by: Rahix <rahix@rahix.de>
5686b3b6 — Rahix 4 years ago
Update CHANGELOG
706a5c26 — Rahix 4 years ago
interrupt: Fix interrupt::free() reading wrong address

The SREG is at IO address 0x3F, not 0x35.  Fix interrupt::free() to read
the correct register to make it work as advertised.

Signed-off-by: Rahix <rahix@rahix.de>
ab1f1360 — Rahix 4 years ago
Prepare 0.2.0

Signed-off-by: Rahix <rahix@rahix.de>
2d38d610 — Rahix 4 years ago
Update CHANGELOG
c0edb56c — Rahix 4 years ago
interrupt: Make interrupt::enable() unsafe

To bring this crate more in line with cortex-m, mark interrupt::enable()
as unsafe.  This also fixes a soundness issue: When the function is
safe, one could call it inside a critical section in entirely safe rust.
This is problematic because lot's of code in critical sections relies on
the fact that interrupts are disabled and it thus can safely perform
non-atomic operations without anything interrupting it.

Signed-off-by: Rahix <rahix@rahix.de>
0e433616 — Rahix 4 years ago
Add asm module for assembly instructions

Add a new module containing wrapper functions for various assembly
instructions.  These functions are marked inline(always) to ensure they
will always just generate the single instruction as expected.

Signed-off-by: Rahix <rahix@rahix.de>
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
fdc319e3 — Rahix 4 years ago
ci: Get rid of matrix build

Instead of a matrix build just build a single time
with all features enabled.

Signed-off-by: Rahix <rahix@rahix.de>
37fb7d9a — Rahix 4 years ago
Update CHANGELOG
232dac2f — Andrew Dona-Couch 4 years ago
attiny88: simplify patches thanks to svdpatch fixes
a8ea1312 — Rahix 4 years ago
svdpatch: Fix _replace_enum when used on derived fields

Make sure the enum is replaced properly in the case of derived
enumerated values.

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