mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/ili9341: convert to xtimer_msleep()
This commit is contained in:
parent
044e0a22fb
commit
0b960ab2de
@ -99,16 +99,16 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
|
||||
if (gpio_is_valid(dev->params->rst_pin)) {
|
||||
gpio_init(dev->params->rst_pin, GPIO_OUT);
|
||||
gpio_clear(dev->params->rst_pin);
|
||||
xtimer_usleep(120 * US_PER_MS);
|
||||
xtimer_msleep(120);
|
||||
gpio_set(dev->params->rst_pin);
|
||||
}
|
||||
xtimer_usleep(120 * US_PER_MS);
|
||||
xtimer_msleep(120);
|
||||
|
||||
/* Acquire once at release at the end */
|
||||
_ili9341_spi_acquire(dev);
|
||||
/* Soft Reset */
|
||||
_write_cmd(dev, ILI9341_CMD_SWRESET, NULL, 0);
|
||||
xtimer_usleep(120 * US_PER_MS);
|
||||
xtimer_msleep(120);
|
||||
|
||||
/* Display off */
|
||||
_write_cmd(dev, ILI9341_CMD_DISPOFF, NULL, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user