pub struct Syscfg { /* private fields */ }Expand description
Owns the SYSCFG registers.
Implementations§
Source§impl Syscfg
impl Syscfg
Sourcepub fn release(self) -> Syscfg
pub fn release(self) -> Syscfg
Returns the peripheral. The clock stays on, since CFGCMPEN also feeds
the comparator.
Sourcepub fn boot_mode(&self) -> BootMode
pub fn boot_mode(&self) -> BootMode
Returns the memory the chip booted from, as latched at the last reset.
Sourcepub fn set_irq_latency(&mut self, latency: u8)
pub fn set_irq_latency(&mut self, latency: u8)
Holds interrupt entry back to no sooner than latency + 1 cycles of
hclk after the interrupt pends. A value above the worst natural latency
makes entry take the same time whatever the core was executing; 0, the
reset value, enters as early as possible.
Sourcepub fn sram_pcef(&self) -> bool
pub fn sram_pcef(&self) -> bool
Whether an SRAM parity error has been caught (SRAM_PCEF). Raised only
while the check is on, see
OptionBytes::sram_parity.
Sourcepub fn clear_sram_pcef(&mut self)
pub fn clear_sram_pcef(&mut self)
Clears SRAM_PCEF.
Source§impl Syscfg
impl Syscfg
Sourcepub fn remap_pa11_pa12<M9: Active, M10: Active>(
&mut self,
_pa9: Pin<'A', 9, M9>,
_pa10: Pin<'A', 10, M10>,
) -> (Pin<'A', 11, Input>, Pin<'A', 12, Input>)
pub fn remap_pa11_pa12<M9: Active, M10: Active>( &mut self, _pa9: Pin<'A', 9, M9>, _pa10: Pin<'A', 10, M10>, ) -> (Pin<'A', 11, Input>, Pin<'A', 12, Input>)
Hands the PA9/PA10 pads over to PA11/PA12, which come back as
inputs.
Packages below 32 pins bond one pair or the other on the same two pads,
PA9/PA10 after reset.
Auto Trait Implementations§
impl !Sync for Syscfg
impl Freeze for Syscfg
impl RefUnwindSafe for Syscfg
impl Send for Syscfg
impl Unpin for Syscfg
impl UnsafeUnpin for Syscfg
impl UnwindSafe for Syscfg
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