logo
Expand description

The kernel interface.

Not to be confused with r3_kernel, a kernel implementation.

Re-exports

pub use cfg::Cfg;
pub use event_group::EventGroup;
pub use event_group::EventGroupBits;
pub use event_group::EventGroupRef;
pub use event_group::EventGroupWaitFlags;
pub use event_group::StaticEventGroup;
pub use hook::StartupHook;
pub use hunk::Hunk;
pub use interrupt::InterruptLine;
pub use interrupt::InterruptNum;
pub use interrupt::InterruptPriority;
pub use interrupt::StaticInterruptHandler;
pub use mutex::Mutex;
pub use mutex::MutexProtocol;
pub use mutex::MutexRef;
pub use mutex::StaticMutex;
pub use raw::Id;
pub use raw::QueueOrder;
pub use semaphore::Semaphore;
pub use semaphore::SemaphoreRef;
pub use semaphore::SemaphoreValue;
pub use semaphore::StaticSemaphore;
pub use task::LocalTask;
pub use task::StaticTask;
pub use task::Task;
pub use task::TaskRef;
pub use timer::StaticTimer;
pub use timer::Timer;
pub use timer::TimerRef;

Modules

Kernel configuration

Event groups

Hooks

Hunks

Interrupt lines and handlers

Mutexes

The prelude module. This module re-exports Kernel and other extension traits with impl-only-use (use ... as _, RFC2166).

The low-level kernel interface to be implemented by a kernel implementor.

The low-level kernel static configuration interface to be implemented by a kernel implementor.

Semaphores

Tasks

Timers

Re-exports all traits defined under this module for convenience.

Enums

Error type for Mutex::lock.

Error type for Kernel::park.

All result codes (including the one indicating success) that a kernel function can return.

Error type for Kernel::sleep.

Error type for Timer::stop.

Error type for Task::unpark.

Error type for wait operations such as EventGroup::wait.

Error type for wait operations with timeout such as EventGroup::wait_timeout.

Traits

Provides access to the global functionalities of a kernel.