pub(crate) struct LiteXArtyInterruptablePeripherals {
pub(crate) uart0: &'static LiteXUart<'static, LiteXSoCRegistersC32B32>,
pub(crate) timer0: &'static LiteXTimer<'static, LiteXSoCRegistersC32B32, Freq100MHz>,
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§
§uart0: &'static LiteXUart<'static, LiteXSoCRegistersC32B32>
§timer0: &'static LiteXTimer<'static, LiteXSoCRegistersC32B32, Freq100MHz>
§ethmac0: &'static LiteEth<'static, LiteXSoCRegistersC32B32>
Implementations§
Trait Implementations§
Source§impl InterruptService for LiteXArtyInterruptablePeripherals
impl InterruptService for LiteXArtyInterruptablePeripherals
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 LiteXArtyInterruptablePeripherals
impl !RefUnwindSafe for LiteXArtyInterruptablePeripherals
impl !Send for LiteXArtyInterruptablePeripherals
impl !Sync for LiteXArtyInterruptablePeripherals
impl Unpin for LiteXArtyInterruptablePeripherals
impl !UnwindSafe for LiteXArtyInterruptablePeripherals
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