~ruther/avr-device

706a5c26062b2d0026957a30fab918a932f896a5 — Rahix 4 years ago ab1f136
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>
1 files changed, 1 insertions(+), 1 deletions(-)

M src/interrupt.rs
M src/interrupt.rs => src/interrupt.rs +1 -1
@@ 44,7 44,7 @@ where
    // Store current state
    unsafe {
        llvm_asm!(
            "in $0,0x35"
            "in $0,0x3F"
            : "=r"(sreg)
            :
            :

Do not follow this link