pub(crate) struct LiteXSimInterruptablePeripherals {
pub(crate) gpio0: &'static LiteXGPIOController<'static, LiteXSoCRegistersC32B32>,
pub(crate) uart0: &'static LiteXUart<'static, LiteXSoCRegistersC32B32>,
pub(crate) timer0: &'static LiteXTimer<'static, LiteXSoCRegistersC32B32, Freq1MHz>,
pub(crate) ethmac0: &'static LiteEth<'static, LiteXSoCRegistersC32B32>,
}
Expand description
Structure for dynamic interrupt mapping, depending on the SoC configuration
This struct is deliberately kept in the board crate. Because of the configurable nature of LiteX, it does not make sense to define a default interrupt mapping, as the interrupt numbers are generated sequentially for all softcores.
Fields§
§gpio0: &'static LiteXGPIOController<'static, LiteXSoCRegistersC32B32>
§uart0: &'static LiteXUart<'static, LiteXSoCRegistersC32B32>
§timer0: &'static LiteXTimer<'static, LiteXSoCRegistersC32B32, Freq1MHz>
§ethmac0: &'static LiteEth<'static, LiteXSoCRegistersC32B32>
Implementations§
Trait Implementations§
Source§impl InterruptService for LiteXSimInterruptablePeripherals
impl InterruptService for LiteXSimInterruptablePeripherals
Source§unsafe fn service_interrupt(&self, interrupt: u32) -> bool
unsafe fn service_interrupt(&self, interrupt: u32) -> bool
Service an interrupt, if supported by this chip. If this interrupt
number is not supported, return false.
Auto Trait Implementations§
impl Freeze for LiteXSimInterruptablePeripherals
impl !RefUnwindSafe for LiteXSimInterruptablePeripherals
impl !Send for LiteXSimInterruptablePeripherals
impl !Sync for LiteXSimInterruptablePeripherals
impl Unpin for LiteXSimInterruptablePeripherals
impl !UnwindSafe for LiteXSimInterruptablePeripherals
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