diff options
| -rw-r--r-- | embassy-boot/rp/src/lib.rs | 2 | ||||
| -rw-r--r-- | examples/boot/bootloader/rp/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-boot/rp/src/lib.rs b/embassy-boot/rp/src/lib.rs index 6eb429aaa..6df34133e 100644 --- a/embassy-boot/rp/src/lib.rs +++ b/embassy-boot/rp/src/lib.rs | |||
| @@ -93,7 +93,7 @@ impl Default for BootLoader { | |||
| 93 | } | 93 | } |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | /// A flash implementation that wraps FLASH and will pet a watchdog when touching flash. | 96 | /// A flash implementation that will feed a watchdog when touching flash. |
| 97 | pub struct WatchdogFlash<'d, const SIZE: usize> { | 97 | pub struct WatchdogFlash<'d, const SIZE: usize> { |
| 98 | flash: Flash<'d, FLASH, SIZE>, | 98 | flash: Flash<'d, FLASH, SIZE>, |
| 99 | watchdog: Watchdog, | 99 | watchdog: Watchdog, |
diff --git a/examples/boot/bootloader/rp/src/main.rs b/examples/boot/bootloader/rp/src/main.rs index 4defa01fd..fb7f0522b 100644 --- a/examples/boot/bootloader/rp/src/main.rs +++ b/examples/boot/bootloader/rp/src/main.rs | |||
| @@ -23,7 +23,7 @@ fn main() -> ! { | |||
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | let mut bl: BootLoader = BootLoader::default(); | 25 | let mut bl: BootLoader = BootLoader::default(); |
| 26 | let flash: WatchdogFlash<'_, FLASH_SIZE> = WatchdogFlash::start(p.FLASH, p.WATCHDOG, Duration::from_secs(8)); | 26 | let flash = WatchdogFlash::<FLASH_SIZE>::start(p.FLASH, p.WATCHDOG, Duration::from_secs(8)); |
| 27 | let mut flash = BootFlash::<_, ERASE_SIZE>::new(flash); | 27 | let mut flash = BootFlash::<_, ERASE_SIZE>::new(flash); |
| 28 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); | 28 | let start = bl.prepare(&mut SingleFlashConfig::new(&mut flash)); |
| 29 | core::mem::drop(flash); | 29 | core::mem::drop(flash); |
