Skip to content

Commit

Permalink
fix build for ARMv7E-M + "inline-asm"
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed May 11, 2018
1 parent 7d51707 commit 550f949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/register/basepri.rs
Expand Up @@ -39,7 +39,7 @@ pub unsafe fn write(_basepri: u8) {
#[cfg(not(feature = "cm7-r0p1"))]
() => asm!("msr BASEPRI, $0" :: "r"(_basepri) : "memory" : "volatile"),
#[cfg(feature = "cm7-r0p1")]
() => interrupt::free(
() => ::interrupt::free(
|_| asm!("msr BASEPRI, $0" :: "r"(_basepri) : "memory" : "volatile"),
),
},
Expand Down
2 changes: 1 addition & 1 deletion src/register/basepri_max.rs
Expand Up @@ -16,7 +16,7 @@ pub fn write(_basepri: u8) {
#[cfg(not(feature = "cm7-r0p1"))]
() => asm!("msr BASEPRI_MAX, $0" :: "r"(_basepri) : "memory" : "volatile"),
#[cfg(feature = "cm7-r0p1")]
() => interrupt::free(
() => ::interrupt::free(
|_| asm!("msr BASEPRI_MAX, $0" :: "r"(_basepri) : "memory" : "volatile"),
),
}
Expand Down

0 comments on commit 550f949

Please sign in to comment.