1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

drivers: pcd8544: use xtimer

This commit is contained in:
Kaspar Schleiser 2015-08-14 13:34:22 +02:00
parent 4445d940ea
commit 01f03a54f1
2 changed files with 10 additions and 2 deletions

View File

@ -358,3 +358,11 @@ endif
ifneq (,$(filter sht11,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter srf02,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter pcd8544,$(USEMODULE)))
USEMODULE += xtimer
endif

View File

@ -19,7 +19,7 @@
#include <stdint.h>
#include <stdio.h>
#include "hwtimer.h"
#include "xtimer.h"
#include "periph/spi.h"
#include "periph/gpio.h"
#include "pcd8544.h"
@ -243,7 +243,7 @@ int pcd8544_init(pcd8544_t *dev, spi_t spi, gpio_t cs, gpio_t reset, gpio_t mode
DEBUG("done initializing SPI master\n");
/* reset display */
gpio_clear(reset);
hwtimer_wait(RESET_DELAY);
xtimer_usleep(RESET_DELAY);
gpio_set(reset);
/* clear display memory */