rp-hal-boards/rp2040-hal/examples
Jan Niehusmann 44019781e2 Use wfi in otherwise empty infinite loops in examples
- Clippy warns about empty loops, https://github.com/rust-lang/rust-clippy/issues/6161
- wfi allows to CPU to save some power

WFI was avoided in examples for fear of ill interactions with debuggers.
However the rp2040 debug port does continue to work, as long as the
relevant clocks are not disabled in SLEEP_EN0/SLEEP_EN1. (By default,
all clocks stay enabled in sleep mode.)

This patch replaces several different workarounds with just calling wfi.
2022-08-01 14:54:03 +00:00
..
adc.rs Implement conversion from Clock to Hertz using reference 2022-07-22 20:17:26 +00:00
blinky.rs fixed typos 2022-04-30 12:51:45 +10:00
dht11.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
gpio_in_out.rs fixed typos 2022-04-30 12:51:45 +10:00
gpio_irq_example.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
i2c.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
lcd_display.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
multicore_fifo_blink.rs Make Multicore take SioFifo rather than the whole Sio & make the spawn closure the last argument 2022-05-08 18:24:49 +10:00
multicore_polyblink.rs Add multicore_polyblink example 2022-05-08 18:29:27 +10:00
pio_blink.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
pio_proc_blink.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
pio_side_set.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
pio_synchronized.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
pwm_blink.rs fixed typos 2022-04-30 12:51:45 +10:00
rom_funcs.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
spi.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
uart.rs fixed typos 2022-04-30 12:51:45 +10:00
watchdog.rs fixed typos 2022-04-30 12:51:45 +10:00