aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin
diff options
context:
space:
mode:
authorFelipe Balbi <[email protected]>2025-11-17 16:34:11 -0800
committerGitHub <[email protected]>2025-11-17 16:34:11 -0800
commit62e297c130ac26afe4d7d5752bb79709bd370e39 (patch)
tree23d51eaf7d8b366c07f0d19a44f86ed2a1c76fde /examples/src/bin
parentbf3ae8e4d69ef2e2ecfdf0b48734d9c91637eb16 (diff)
Allow writing binary to flash (#20)
Turns out probe-rs works out of the box. Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'examples/src/bin')
-rw-r--r--examples/src/bin/blink.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/src/bin/blink.rs b/examples/src/bin/blink.rs
index d8a57c546..c36fc9421 100644
--- a/examples/src/bin/blink.rs
+++ b/examples/src/bin/blink.rs
@@ -27,6 +27,8 @@ async fn main(_spawner: Spawner) {
27 init_ostimer0(hal::pac()); 27 init_ostimer0(hal::pac());
28 } 28 }
29 29
30 defmt::info!("Blink example");
31
30 // Initialize embassy-time global driver backed by OSTIMER0 32 // Initialize embassy-time global driver backed by OSTIMER0
31 hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); 33 hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000);
32 34
@@ -42,6 +44,8 @@ async fn main(_spawner: Spawner) {
42 // With pauses between letters and words 44 // With pauses between letters and words
43 45
44 loop { 46 loop {
47 defmt::info!("SOS");
48
45 // S: three short blinks 49 // S: three short blinks
46 for _ in 0..3 { 50 for _ in 0..3 {
47 led.set_low(); 51 led.set_low();