1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#[inline]
pub fn read() -> u32 {
call_asm!(__msp_r() -> u32)
}
#[inline]
#[deprecated = "calling this function invokes Undefined Behavior, consider asm::bootstrap as an alternative"]
pub unsafe fn write(bits: u32) {
call_asm!(__msp_w(bits: u32));
}
#[cfg(armv8m)]
#[inline]
pub fn read_ns() -> u32 {
call_asm!(__msp_ns_r() -> u32)
}
#[cfg(armv8m)]
#[inline]
pub unsafe fn write_ns(bits: u32) {
call_asm!(__msp_ns_w(bits: u32));
}