diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-03-26 16:01:37 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-03-27 15:18:06 +0100 |
| commit | d41eeeae79388f219bf6a84e2f7bde9f6b532516 (patch) | |
| tree | 678b6fc732216e529dc38e6f65b72a309917ac32 /embassy-boot-nrf | |
| parent | 9edf5b7f049f95742b60b041e4443967d8a6b708 (diff) | |
Remove Peripheral trait, rename PeripheralRef->Peri.
Diffstat (limited to 'embassy-boot-nrf')
| -rw-r--r-- | embassy-boot-nrf/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-boot-nrf/src/lib.rs b/embassy-boot-nrf/src/lib.rs index e5bc870b5..46c1994e2 100644 --- a/embassy-boot-nrf/src/lib.rs +++ b/embassy-boot-nrf/src/lib.rs | |||
| @@ -9,7 +9,7 @@ pub use embassy_boot::{ | |||
| 9 | }; | 9 | }; |
| 10 | use embassy_nrf::nvmc::PAGE_SIZE; | 10 | use embassy_nrf::nvmc::PAGE_SIZE; |
| 11 | use embassy_nrf::peripherals::WDT; | 11 | use embassy_nrf::peripherals::WDT; |
| 12 | use embassy_nrf::wdt; | 12 | use embassy_nrf::{wdt, Peri}; |
| 13 | use embedded_storage::nor_flash::{ErrorType, NorFlash, ReadNorFlash}; | 13 | use embedded_storage::nor_flash::{ErrorType, NorFlash, ReadNorFlash}; |
| 14 | 14 | ||
| 15 | /// A bootloader for nRF devices. | 15 | /// A bootloader for nRF devices. |
| @@ -113,7 +113,7 @@ pub struct WatchdogFlash<FLASH> { | |||
| 113 | 113 | ||
| 114 | impl<FLASH> WatchdogFlash<FLASH> { | 114 | impl<FLASH> WatchdogFlash<FLASH> { |
| 115 | /// Start a new watchdog with a given flash and WDT peripheral and a timeout | 115 | /// Start a new watchdog with a given flash and WDT peripheral and a timeout |
| 116 | pub fn start(flash: FLASH, wdt: WDT, config: wdt::Config) -> Self { | 116 | pub fn start(flash: FLASH, wdt: Peri<'static, WDT>, config: wdt::Config) -> Self { |
| 117 | let (_wdt, [wdt]) = match wdt::Watchdog::try_new(wdt, config) { | 117 | let (_wdt, [wdt]) = match wdt::Watchdog::try_new(wdt, config) { |
| 118 | Ok(x) => x, | 118 | Ok(x) => x, |
| 119 | Err(_) => { | 119 | Err(_) => { |
