Switching from llvm_asm!() to asm!()

Macro llvm_asm is replace by asm.
This a reason to increase the version number.
main
Geert Stappers 2022-06-08 11:32:07 +02:00
parent 6fec9ca38f
commit a33d38a755
3 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@ members = [
[package]
name = "ruduino"
version = "0.3.3"
version = "0.4.0"
edition = "2018"
authors = [
"The AVR-Rust Project Developers",

View File

@ -1,5 +1,6 @@
//! Routines for managing interrupts.
use core::arch::asm;
use core::prelude::v1::*;
use core::marker::PhantomData;
@ -22,7 +23,7 @@ pub fn without_interrupts<F, T>(f: F) -> T
impl DisableInterrupts {
#[inline(always)]
pub fn new() -> DisableInterrupts {
unsafe { llvm_asm!("CLI") }
unsafe { asm!("CLI") }
DisableInterrupts(PhantomData)
}
}
@ -30,7 +31,7 @@ impl DisableInterrupts {
impl Drop for DisableInterrupts {
#[inline(always)]
fn drop(&mut self) {
unsafe { llvm_asm!("SEI") }
unsafe { asm!("SEI") }
}
}

View File

@ -1,6 +1,6 @@
//! Definitions of register addresses and bits within those registers
#![feature(llvm_asm)]
#![feature(asm_experimental_arch)]
#![feature(associated_type_defaults)]
#![feature(lang_items)]
#![feature(proc_macro_hygiene)]