We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
set_fpu_access_mode
1 parent 4689992 commit 9a80baeCopy full SHA for 9a80bae
src/peripheral/scb.rs
@@ -78,6 +78,11 @@ impl RegisterBlock {
78
}
79
80
/// Sets FPU access mode
81
+ ///
82
+ /// *IMPORTANT* Any function that runs fully or partly with the FPU disabled must *not* take any
83
+ /// floating-point arguments or have any floating-point local variables. Because the compiler
84
+ /// might inline such a function into a caller that does have floating-point arguments or
85
+ /// variables, any such function must be also marked #[inline(never)].
86
pub fn set_fpu_access_mode(&self, mode: FpuAccessMode) {
87
let mut cpacr = self.cpacr.read() & !SCB_CPACR_FPU_MASK;
88
match mode {
0 commit comments