From d78fa89b0f718234d1a73eaf909a7e741cae3e64 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Tue, 27 Sep 2016 23:09:04 +0200 Subject: [PATCH] Updated according to Timer API changes --- extdrv/epaper.c | 2 +- include/extdrv/epaper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extdrv/epaper.c b/extdrv/epaper.c index a588ca9..dbe744d 100644 --- a/extdrv/epaper.c +++ b/extdrv/epaper.c @@ -65,7 +65,7 @@ void epaper_config(struct epaper_definition* ep_def) config_gpio(&(epd->pin_spi_cs), LPC_IO_MODE_PULL_UP, GPIO_DIR_OUT, 1); /* PWM Timer configuration */ - timer_setup(epd->pwm_timer_num, &(epd->pwm_timer_conf)); + timer_pwm_config(epd->pwm_timer_num, &(epd->pwm_timer_conf)); } diff --git a/include/extdrv/epaper.h b/include/extdrv/epaper.h index f7e2f42..fc5b6e9 100644 --- a/include/extdrv/epaper.h +++ b/include/extdrv/epaper.h @@ -49,7 +49,7 @@ struct epaper_definition uint16_t stage_time; uint8_t spi_num; uint8_t pwm_timer_num; - struct timer_config pwm_timer_conf; + struct lpc_timer_pwm_config pwm_timer_conf; /* Input pin */ struct pio pin_busy; /* Output pins */ @@ -71,7 +71,7 @@ enum epaper_stages { /* mage pixel -> Display pixel */ /* * Configure all gpio used for e-paper display handling - * Also calls timer_setup() + * Also calls timer_pwm_config() * Keeps a pointer to the epaper_definition structure, which MUST stay available. */ void epaper_config(struct epaper_definition* epd); -- 2.43.0