//! CPU core peripherals.
/// Execution modes of the CPU.
pubenumExecMode{/// Kernel is active, e.g. syscall or ISR.
Kernel,/// CPU is in thread mode.
Thread,}/// CPU core peripherals.
pubtraitICore{/// Setup core peripherals and return core object.
fnnew()->Self;/// Set the system tick divisor.
fnset_systick_div(&mutself, divisor:u32);/// Start peripherals used by kernel.
fnstart(&mutself);/// Break point instruction.
fnbkpt();/// CPU execution mode.
fnexecution_mode()-> ExecMode;/// Returns true if the CPU is processing an interrupt.
fnis_in_interrupt()->bool;/// Cycles counted by CPU for debug purposes.
fndebug_time()->u32;}