Browse Source

drivers: pcd8544: use xtimer

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
01f03a54f1
  1. 8
      Makefile.dep
  2. 4
      drivers/pcd8544/pcd8544.c

8
Makefile.dep

@ -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

4
drivers/pcd8544/pcd8544.c

@ -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 */

Loading…
Cancel
Save