diff options
Diffstat (limited to 'embassy-boot-nrf/src/lib.rs')
| -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(_) => { |
