Skip to content

Commit

Permalink
Exposed watchdog as part of peripherals
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jan 21, 2025
1 parent a338016 commit 1331d58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ pub struct Peripherals {
/// System Control Block (SCB) - core peripheral
pub SCB: raw::SCB,

/// Watchdog
pub wwdt: raw::WWDT,

#[cfg(not(feature = "rtic-peripherals"))]
/// SysTick: System Timer - core peripheral
#[cfg(not(feature = "rtic-peripherals"))]
Expand Down Expand Up @@ -415,6 +418,7 @@ impl From<(raw::Peripherals, raw::CorePeripherals)> for Peripherals {
FLASH_CFPA0: p.FLASH_CFPA0,
SAU: p.SAU,
SCT0: p.SCT0,
wwdt: p.WWDT,

// Core peripherals
CPUID: cp.CPUID,
Expand Down

0 comments on commit 1331d58

Please sign in to comment.