pub(crate) struct Platform {
pub(crate) keyboard_hid_driver: &'static KeyboardHidComponentType<Usbd<'static>>,
pub(crate) hmac: &'static HmacComponentType<HmacSha256SoftwareComponentType<Sha256Software<'static>>, 32>,
pub(crate) screen: &'static ScreenComponentType,
pub(crate) base: Platform,
}
Fields§
§keyboard_hid_driver: &'static KeyboardHidComponentType<Usbd<'static>>
§hmac: &'static HmacComponentType<HmacSha256SoftwareComponentType<Sha256Software<'static>>, 32>
§screen: &'static ScreenComponentType
§base: Platform
Trait Implementations§
Source§impl KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>> for Platform
impl KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>> for Platform
Source§type SyscallDriverLookup = Platform
type SyscallDriverLookup = Platform
The implementation of the system call dispatch mechanism the kernel
will use.
Source§type SyscallFilter = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::SyscallFilter
type SyscallFilter = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::SyscallFilter
The implementation of the system call filtering mechanism the kernel
will use.
Source§type ProcessFault = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::ProcessFault
type ProcessFault = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::ProcessFault
The implementation of the process fault handling mechanism the kernel
will use.
Source§type Scheduler = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::Scheduler
type Scheduler = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::Scheduler
The implementation of the scheduling algorithm the kernel will use.
Source§type SchedulerTimer = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::SchedulerTimer
type SchedulerTimer = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::SchedulerTimer
The implementation of the timer used to create the timeslices provided
to applications.
Source§type WatchDog = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::WatchDog
type WatchDog = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::WatchDog
The implementation of the WatchDog timer used to monitor the running
of the kernel.
Source§type ContextSwitchCallback = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::ContextSwitchCallback
type ContextSwitchCallback = <Platform as KernelResources<NRF52<'static, Nrf52840DefaultPeripherals<'static>>>>::ContextSwitchCallback
The implementation of the context switch callback handler
the kernel will use.
Source§fn syscall_driver_lookup(&self) -> &Self::SyscallDriverLookup
fn syscall_driver_lookup(&self) -> &Self::SyscallDriverLookup
Returns a reference to the implementation of the SyscallDriverLookup this
platform will use to route syscalls.
Source§fn syscall_filter(&self) -> &Self::SyscallFilter
fn syscall_filter(&self) -> &Self::SyscallFilter
Returns a reference to the implementation of the SyscallFilter this
platform wants the kernel to use.
Source§fn process_fault(&self) -> &Self::ProcessFault
fn process_fault(&self) -> &Self::ProcessFault
Returns a reference to the implementation of the ProcessFault handler
this platform wants the kernel to use.
Source§fn scheduler(&self) -> &Self::Scheduler
fn scheduler(&self) -> &Self::Scheduler
Returns a reference to the implementation of the Scheduler this platform
wants the kernel to use.
Source§fn scheduler_timer(&self) -> &Self::SchedulerTimer
fn scheduler_timer(&self) -> &Self::SchedulerTimer
Returns a reference to the implementation of the SchedulerTimer timer
for this platform.
Source§fn watchdog(&self) -> &Self::WatchDog
fn watchdog(&self) -> &Self::WatchDog
Returns a reference to the implementation of the WatchDog on this
platform.
Source§fn context_switch_callback(&self) -> &Self::ContextSwitchCallback
fn context_switch_callback(&self) -> &Self::ContextSwitchCallback
Returns a reference to the implementation of the ContextSwitchCallback
for this platform.
Source§impl SyscallDriverLookup for Platform
impl SyscallDriverLookup for Platform
Source§fn with_driver<F, R>(&self, driver_num: usize, f: F) -> R
fn with_driver<F, R>(&self, driver_num: usize, f: F) -> R
Platform-specific mapping of syscall numbers to objects that implement
the Driver methods for that syscall. Read more
Auto Trait Implementations§
impl !Freeze for Platform
impl !RefUnwindSafe for Platform
impl !Send for Platform
impl !Sync for Platform
impl Unpin for Platform
impl !UnwindSafe for Platform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more