aboutsummaryrefslogtreecommitdiff
path: root/examples/boot
diff options
context:
space:
mode:
authorchemicstry <[email protected]>2023-07-31 10:29:20 +0300
committerchemicstry <[email protected]>2023-07-31 10:29:20 +0300
commit780569c08ab089dae67c5d57dd1852d5419d4577 (patch)
tree021965b7c9ac34fb33507c3998b3a6b6e7cecae7 /examples/boot
parenta56ef685f3bfd9148a79c9dbbdde83a2c1642ba5 (diff)
parent6c6bd11c1a28eb8985518a10bd723c622d82f4b6 (diff)
Merge remote-tracking branch 'origin/main' into bxcan_timestamp
Diffstat (limited to 'examples/boot')
-rw-r--r--examples/boot/application/rp/src/bin/a.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/boot/application/rp/src/bin/a.rs b/examples/boot/application/rp/src/bin/a.rs
index c8497494c..b5e1950cc 100644
--- a/examples/boot/application/rp/src/bin/a.rs
+++ b/examples/boot/application/rp/src/bin/a.rs
@@ -7,7 +7,7 @@ use core::cell::RefCell;
7use defmt_rtt as _; 7use defmt_rtt as _;
8use embassy_boot_rp::*; 8use embassy_boot_rp::*;
9use embassy_executor::Spawner; 9use embassy_executor::Spawner;
10use embassy_rp::flash::Flash; 10use embassy_rp::flash::{self, Flash};
11use embassy_rp::gpio::{Level, Output}; 11use embassy_rp::gpio::{Level, Output};
12use embassy_rp::watchdog::Watchdog; 12use embassy_rp::watchdog::Watchdog;
13use embassy_sync::blocking_mutex::Mutex; 13use embassy_sync::blocking_mutex::Mutex;
@@ -34,7 +34,7 @@ async fn main(_s: Spawner) {
34 let mut watchdog = Watchdog::new(p.WATCHDOG); 34 let mut watchdog = Watchdog::new(p.WATCHDOG);
35 watchdog.start(Duration::from_secs(8)); 35 watchdog.start(Duration::from_secs(8));
36 36
37 let flash: Flash<_, FLASH_SIZE> = Flash::new(p.FLASH); 37 let flash = Flash::<_, flash::Blocking, FLASH_SIZE>::new(p.FLASH);
38 let flash = Mutex::new(RefCell::new(flash)); 38 let flash = Mutex::new(RefCell::new(flash));
39 39
40 let config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash); 40 let config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash);