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:
parent
17c0ddfe9c
commit
dc92d1d559
|
@ -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)
|
||||
{
|
||||
/*
|
||||
* TODO: swap out with k_usleep() once that can be trusted to
|
||||
* work reliably.
|
||||
*/
|
||||
k_busy_wait(delay);
|
||||
k_usleep(delay);
|
||||
}
|
||||
|
||||
static int ws2812_strip_update_rgb(const struct device *dev,
|
||||
|
|
Loading…
Reference in a new issue