diff options
| author | Felipe Balbi <[email protected]> | 2025-11-17 16:36:19 -0800 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2025-11-17 16:36:19 -0800 |
| commit | 017c8020f56a996182788202c8bc9da1cf4d503a (patch) | |
| tree | c953f04faecd06123a7beb788d729fe10c705270 /examples/src/bin | |
| parent | 02285c2153d22f2c0c93a4ce920cdebc03f18658 (diff) | |
| parent | 62e297c130ac26afe4d7d5752bb79709bd370e39 (diff) | |
Merge remote-tracking branch 'odp/main' into james/impl-clocks
Diffstat (limited to 'examples/src/bin')
| -rw-r--r-- | examples/src/bin/blink.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/src/bin/blink.rs b/examples/src/bin/blink.rs index 8c48e79f1..d8b158d50 100644 --- a/examples/src/bin/blink.rs +++ b/examples/src/bin/blink.rs | |||
| @@ -26,6 +26,8 @@ async fn main(_spawner: Spawner) { | |||
| 26 | init_led_gpio_clocks(hal::pac()); | 26 | init_led_gpio_clocks(hal::pac()); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | defmt::info!("Blink example"); | ||
| 30 | |||
| 29 | // Initialize embassy-time global driver backed by OSTIMER0 | 31 | // Initialize embassy-time global driver backed by OSTIMER0 |
| 30 | hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); | 32 | hal::ostimer::time_driver::init(hal::config::Config::default().time_interrupt_priority, 1_000_000); |
| 31 | 33 | ||
| @@ -41,6 +43,8 @@ async fn main(_spawner: Spawner) { | |||
| 41 | // With pauses between letters and words | 43 | // With pauses between letters and words |
| 42 | 44 | ||
| 43 | loop { | 45 | loop { |
| 46 | defmt::info!("SOS"); | ||
| 47 | |||
| 44 | // S: three short blinks | 48 | // S: three short blinks |
| 45 | for _ in 0..3 { | 49 | for _ in 0..3 { |
| 46 | led.set_low(); | 50 | led.set_low(); |
