Skip to content

Commit a33d38a

Browse files
committed
Switching from llvm_asm!() to asm!()
Macro llvm_asm is replace by asm. This a reason to increase the version number.
1 parent 6fec9ca commit a33d38a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66

77
[package]
88
name = "ruduino"
9-
version = "0.3.3"
9+
version = "0.4.0"
1010
edition = "2018"
1111
authors = [
1212
"The AVR-Rust Project Developers",

src/interrupt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Routines for managing interrupts.
22
3+
use core::arch::asm;
34
use core::prelude::v1::*;
45
use core::marker::PhantomData;
56

@@ -22,15 +23,15 @@ pub fn without_interrupts<F, T>(f: F) -> T
2223
impl DisableInterrupts {
2324
#[inline(always)]
2425
pub fn new() -> DisableInterrupts {
25-
unsafe { llvm_asm!("CLI") }
26+
unsafe { asm!("CLI") }
2627
DisableInterrupts(PhantomData)
2728
}
2829
}
2930

3031
impl Drop for DisableInterrupts {
3132
#[inline(always)]
3233
fn drop(&mut self) {
33-
unsafe { llvm_asm!("SEI") }
34+
unsafe { asm!("SEI") }
3435
}
3536
}
3637

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Definitions of register addresses and bits within those registers
22
3-
#![feature(llvm_asm)]
3+
#![feature(asm_experimental_arch)]
44
#![feature(associated_type_defaults)]
55
#![feature(lang_items)]
66
#![feature(proc_macro_hygiene)]

0 commit comments

Comments
 (0)