Skip to content

Commit c62a7b0

Browse files
committed
simpl-impl
1 parent a5ad471 commit c62a7b0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

  • tock/kernel/src/platform

tock/kernel/src/platform/mod.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ pub trait Chip {
1717

1818
type SysTick: systick::SysTick;
1919

20-
fn service_pending_interrupts(&self);
20+
fn service_pending_interrupts(&self){ loop { } }
2121

22-
fn has_pending_interrupts(&self) -> bool;
22+
fn has_pending_interrupts(&self) -> bool{ loop { } }
2323

24-
fn mpu(&self) -> &Self::MPU;
24+
fn mpu(&self) -> &Self::MPU{ loop { } }
2525

26-
fn systick(&self) -> &Self::SysTick;
26+
fn systick(&self) -> &Self::SysTick{ loop { } }
2727

28-
fn userspace_kernel_boundary(&self) -> &Self::UserspaceKernelBoundary;
28+
fn userspace_kernel_boundary(&self) -> &Self::UserspaceKernelBoundary{ loop { } }
2929

30-
fn sleep(&self);
30+
fn sleep(&self){ loop { } }
3131

32-
unsafe fn atomic<F, R>(&self, f: F) -> R
32+
unsafe fn atomic<F, R>(&self, _: F) -> R
3333
where
34-
F: FnOnce() -> R;
34+
F: FnOnce() -> R{ loop { } }
3535
}
3636

3737
pub trait ClockInterface {
38-
fn is_enabled(&self) -> bool;
39-
fn enable(&self);
40-
fn disable(&self);
38+
fn is_enabled(&self) -> bool{ loop { } }
39+
fn enable(&self){ loop { } }
40+
fn disable(&self){ loop { } }
4141
}
4242

4343
pub struct NoClockControl {}

0 commit comments

Comments
 (0)