generate docs for Cortex-M / Cortex-R intrinsics (#536)

This commit is contained in:
Jorge Aparicio 2018-07-24 11:02:33 -05:00 committed by Alex Crichton
parent c2f7e244d0
commit 5fe4272376
2 changed files with 6 additions and 6 deletions

View file

@ -164,7 +164,7 @@ pub unsafe fn __set_PRIMASK(pri_mask: u32) {
asm!("msr PRIMASK, $0" : : "r"(pri_mask) : : "volatile");
}
#[cfg(target_feature = "v7")]
#[cfg(any(target_feature = "v7", dox))]
mod v7 {
/// Enable FIQ
///
@ -245,7 +245,7 @@ mod v7 {
}
}
#[cfg(target_feature = "v7")]
#[cfg(any(target_feature = "v7", dox))]
pub use self::v7::*;
/* Core instruction access */

View file

@ -7,9 +7,9 @@
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics
#![allow(non_camel_case_types)]
#[cfg(target_feature = "mclass")]
#[cfg(any(target_feature = "mclass", dox))]
mod cmsis;
#[cfg(target_feature = "mclass")]
#[cfg(any(target_feature = "mclass", dox))]
pub use self::cmsis::*;
mod v6;
@ -20,9 +20,9 @@ mod v7;
#[cfg(any(target_arch = "aarch64", target_feature = "v7"))]
pub use self::v7::*;
#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))]
#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))]
mod dsp;
#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))]
#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))]
pub use self::dsp::*;
// NEON is supported on AArch64, and on ARM when built with the v7 and neon