Skip to content

Commit d9ad9d4

Browse files
committed
Fix function names and remove exclusive access
1 parent 454bb4e commit d9ad9d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/peripheral/scb.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,15 +646,15 @@ impl SCB {
646646

647647
/// Set the PENDSTCLR bit in the ICSR register which will clear a pending SysTick interrupt
648648
#[inline]
649-
pub fn set_systick(&mut self) {
649+
pub fn set_pendst() {
650650
unsafe {
651651
(*Self::ptr()).icsr.write(SCB_ICSR_PENDSTSET);
652652
}
653653
}
654654

655655
/// Check if PENDSTSET bit in the ICSR register is set meaning SysTick interrupt is pending
656656
#[inline]
657-
pub fn is_systick_pending() -> bool {
657+
pub fn is_pendst_pending() -> bool {
658658
unsafe {
659659
(*Self::ptr()).icsr.read() & SCB_ICSR_PENDSTSET == SCB_ICSR_PENDSTSET
660660
}
@@ -663,7 +663,7 @@ impl SCB {
663663

664664
/// Set the PENDSTCLR bit in the ICSR register which will clear a pending SysTick interrupt
665665
#[inline]
666-
pub fn clear_systick_pending(&mut self) {
666+
pub fn clear_pendst() {
667667
unsafe {
668668
(*Self::ptr()).icsr.write(SCB_ICSR_PENDSTCLR);
669669
}

0 commit comments

Comments
 (0)