rp-hal-boards/boards/rp-pico/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
..
pico_blinky.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_countdown_blinky.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_gpio_in_out.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_hd44780_display.rs Port HD44780 display example from rp2040-hal to rp-pico (#347) 2022-05-31 23:08:02 +10:00
pico_i2c_oled_display_ssd1306.rs Implement conversion from Clock to Hertz using reference 2022-07-22 20:17:26 +00:00
pico_i2c_pio.rs Use wfi in otherwise empty infinite loops in examples 2022-08-01 14:54:03 +00:00
pico_pio_pwm.rs Add pio pwm example (#365) 2022-06-26 22:11:41 +10:00
pico_pwm_blink.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_pwm_servo.rs Add Pico PWM micro servo example (#346) 2022-05-26 22:25:49 +10:00
pico_rtic.rs Abstract alarms 2022-04-30 11:54:54 +10:00
pico_spi_sd_card.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_uart_irq_buffer.rs Implement conversion from Clock to Hertz using reference 2022-07-22 20:17:26 +00:00
pico_uart_irq_echo.rs Implement conversion from Clock to Hertz using reference 2022-07-22 20:17:26 +00:00
pico_usb_serial.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_usb_serial_interrupt.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_usb_twitchy_mouse.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pico_ws2812_led.rs Merge pull request #324 from 9names/bsp_use_hal_entry_macro 2022-05-31 23:41:45 +10:00
pwm.pio Add pio pwm example (#365) 2022-06-26 22:11:41 +10:00