aboutsummaryrefslogtreecommitdiff
path: root/examples/rp23/src/bin/interrupt.rs
diff options
context:
space:
mode:
author9names <[email protected]>2025-02-16 13:04:59 +1100
committer9names <[email protected]>2025-02-16 15:43:08 +1100
commit6b1706434dfeb80b3659f3d2a1bbe2871ec8ea55 (patch)
tree38ae69ca2fe80726b8b88d7641aa94a3cfebc8e6 /examples/rp23/src/bin/interrupt.rs
parent4cc5ab9474773148dd8976e22f3fb6f5e270cd3a (diff)
Remove ImageDef from rp23 examples
Diffstat (limited to 'examples/rp23/src/bin/interrupt.rs')
-rw-r--r--examples/rp23/src/bin/interrupt.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/rp23/src/bin/interrupt.rs b/examples/rp23/src/bin/interrupt.rs
index d563e6ebe..e9ac76486 100644
--- a/examples/rp23/src/bin/interrupt.rs
+++ b/examples/rp23/src/bin/interrupt.rs
@@ -13,7 +13,6 @@ use core::cell::{Cell, RefCell};
13use defmt::*; 13use defmt::*;
14use embassy_executor::Spawner; 14use embassy_executor::Spawner;
15use embassy_rp::adc::{self, Adc, Blocking}; 15use embassy_rp::adc::{self, Adc, Blocking};
16use embassy_rp::block::ImageDef;
17use embassy_rp::gpio::Pull; 16use embassy_rp::gpio::Pull;
18use embassy_rp::interrupt; 17use embassy_rp::interrupt;
19use embassy_rp::pwm::{Config, Pwm}; 18use embassy_rp::pwm::{Config, Pwm};
@@ -25,10 +24,6 @@ use portable_atomic::{AtomicU32, Ordering};
25use static_cell::StaticCell; 24use static_cell::StaticCell;
26use {defmt_rtt as _, panic_probe as _}; 25use {defmt_rtt as _, panic_probe as _};
27 26
28#[link_section = ".start_block"]
29#[used]
30pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe();
31
32static COUNTER: AtomicU32 = AtomicU32::new(0); 27static COUNTER: AtomicU32 = AtomicU32::new(0);
33static PWM: Mutex<CriticalSectionRawMutex, RefCell<Option<Pwm>>> = Mutex::new(RefCell::new(None)); 28static PWM: Mutex<CriticalSectionRawMutex, RefCell<Option<Pwm>>> = Mutex::new(RefCell::new(None));
34static ADC: Mutex<CriticalSectionRawMutex, RefCell<Option<(Adc<Blocking>, adc::Channel)>>> = 29static ADC: Mutex<CriticalSectionRawMutex, RefCell<Option<(Adc<Blocking>, adc::Channel)>>> =