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));
}
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 */
/*
* 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);