ICore

Trait ICore 

Source
pub trait ICore {
    // Required methods
    fn new() -> Self;
    fn set_systick_div(&mut self, divisor: u32);
    fn start(&mut self);
    fn bkpt();
    fn execution_mode() -> ExecMode;
    fn is_in_interrupt() -> bool;
    fn debug_time() -> u32;
}
Expand description

CPU core peripherals.

Required Methods§

Source

fn new() -> Self

Setup core peripherals and return core object.

Source

fn set_systick_div(&mut self, divisor: u32)

Set the system tick divisor.

Source

fn start(&mut self)

Start peripherals used by kernel.

Source

fn bkpt()

Break point instruction.

Source

fn execution_mode() -> ExecMode

CPU execution mode.

Source

fn is_in_interrupt() -> bool

Returns true if the CPU is processing an interrupt.

Source

fn debug_time() -> u32

Cycles counted by CPU for debug purposes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§