led_strip: ws2812: use k_usleep() for reset delay

Since this driver is working reliably, let's use k_usleep() instead of
k_busy_wait() (as suggested in a TODO comment) to latch and reset the
LED strip controller.

Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
This commit is contained in:
Simon Guinot 2021-05-25 01:12:00 +02:00 committed by Carles Cufí
parent 17c0ddfe9c
commit dc92d1d559

View file

@ -95,11 +95,7 @@ static inline bool num_pixels_ok(const struct ws2812_spi_cfg *cfg,
*/ */
static inline void ws2812_reset_delay(uint16_t delay) static inline void ws2812_reset_delay(uint16_t delay)
{ {
/* k_usleep(delay);
* TODO: swap out with k_usleep() once that can be trusted to
* work reliably.
*/
k_busy_wait(delay);
} }
static int ws2812_strip_update_rgb(const struct device *dev, static int ws2812_strip_update_rgb(const struct device *dev,