Trait mango_hal::devices::System

source ·
pub trait System: Device {
    // Required methods
    fn shutdown(&self);
    fn idle_if<T: Fn() -> bool>(&self, cond: T);
    fn wait_forever(&self) -> !;
    fn disable_interruptions(&self);
    fn enable_interruptions(&self);
}
Expand description

§Initialization

The system is expected to initialize:

  • the CPU
  • the memory allocator

Required Methods§

source

fn shutdown(&self)

Called to shutdown the system

source

fn idle_if<T: Fn() -> bool>(&self, cond: T)

source

fn wait_forever(&self) -> !

source

fn disable_interruptions(&self)

source

fn enable_interruptions(&self)

Object Safety§

This trait is not object safe.

Implementors§