Updated according to Timer API changes
authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 27 Sep 2016 21:09:04 +0000 (23:09 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000 (17:03 +0100)
extdrv/epaper.c
include/extdrv/epaper.h

index a588ca9..dbe744d 100644 (file)
@@ -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));
 }
 
 
index f7e2f42..fc5b6e9 100644 (file)
@@ -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);