Struct stm32f412g::chip::Stm32f4xx
source · pub struct Stm32f4xx<'a, I>where
I: InterruptService + 'a,{ /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, I> Chip for Stm32f4xx<'a, I>where
I: InterruptService + 'a,
impl<'a, I> Chip for Stm32f4xx<'a, I>where
I: InterruptService + 'a,
§type UserspaceKernelBoundary = SysCall<CortexM4F>
type UserspaceKernelBoundary = SysCall<CortexM4F>
The implementation of the interface between userspace and the kernel for
this specific chip. Likely this is architecture specific, but individual
chips may have various custom requirements.
source§fn service_pending_interrupts(&self)
fn service_pending_interrupts(&self)
The kernel calls this function to tell the chip to check for all pending
interrupts and to correctly dispatch them to the peripheral drivers for
the chip. Read more
source§fn has_pending_interrupts(&self) -> bool
fn has_pending_interrupts(&self) -> bool
Ask the chip to check if there are any pending interrupts.
source§fn mpu(&self) -> &MPU<8, 32>
fn mpu(&self) -> &MPU<8, 32>
Returns a reference to the implementation for the MPU on this chip.
source§fn userspace_kernel_boundary(&self) -> &SysCall<CortexM4F>
fn userspace_kernel_boundary(&self) -> &SysCall<CortexM4F>
Returns a reference to the implementation for the interface between
userspace and kernelspace.
source§fn sleep(&self)
fn sleep(&self)
Called when there is nothing left for the chip to do and it should enter
a low power sleep state. This low power sleep state should allow
interrupts to still be active so that the next interrupt event wakes the
chip and resumes the scheduler.
source§unsafe fn atomic<F, R>(&self, f: F) -> Rwhere
F: FnOnce() -> R,
unsafe fn atomic<F, R>(&self, f: F) -> Rwhere
F: FnOnce() -> R,
Run a function in an atomic state, which means that interrupts are
disabled so that an interrupt will not fire during the passed in
function’s execution.
source§unsafe fn print_state(&self, write: &mut dyn Write)
unsafe fn print_state(&self, write: &mut dyn Write)
Print out chip state (system registers) to a supplied
writer. This does not print out the execution context
(data registers), as this depends on how they are stored;
that is implemented by
syscall::UserspaceKernelBoundary::print_context
.
This also does not print out a process memory state,
that is implemented by process::Process::print_memory_map
.
The MPU state is printed by the MPU’s implementation of
the Display trait.
Used by panic.Auto Trait Implementations§
impl<'a, I> !Freeze for Stm32f4xx<'a, I>
impl<'a, I> !RefUnwindSafe for Stm32f4xx<'a, I>
impl<'a, I> !Send for Stm32f4xx<'a, I>
impl<'a, I> !Sync for Stm32f4xx<'a, I>
impl<'a, I> Unpin for Stm32f4xx<'a, I>
impl<'a, I> !UnwindSafe for Stm32f4xx<'a, I>
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