memlcd: Mark Schulte <mark@mjs.pw>

This commit is contained in:
Mark Schulte
2017-03-01 08:52:58 -06:00
committed by Gregory Nutt
parent 9d22f5df35
commit 28226198a7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -376,7 +376,7 @@ static inline void memlcd_clear(FAR struct memlcd_dev_s *mlcd)
* *
****************************************************************************/ ****************************************************************************/
static int memlcd_extcominisr(int irq, FAR void *context) static int memlcd_extcominisr(int irq, FAR void *context, void *arg)
{ {
static bool pol = 0; static bool pol = 0;
struct memlcd_dev_s *mlcd = &g_memlcddev; struct memlcd_dev_s *mlcd = &g_memlcddev;
@@ -723,7 +723,7 @@ FAR struct lcd_dev_s *memlcd_initialize(FAR struct spi_dev_s *spi,
mlcd->priv = priv; mlcd->priv = priv;
mlcd->spi = spi; mlcd->spi = spi;
mlcd->priv->attachirq(memlcd_extcominisr); mlcd->priv->attachirq(memlcd_extcominisr, mlcd);
lcdinfo("done\n"); lcdinfo("done\n");
return &mlcd->dev; return &mlcd->dev;
+1 -1
View File
@@ -81,7 +81,7 @@ struct memlcd_priv_s
* setvcomfreq - Set timer frequency for EXTCOMIN. * setvcomfreq - Set timer frequency for EXTCOMIN.
*/ */
int (*attachirq) (xcpt_t isr); int (*attachirq) (xcpt_t isr, void *arg);
void (*dispcontrol) (bool on); void (*dispcontrol) (bool on);
#ifndef CONFIG_MEMLCD_EXTCOMIN_MODE_HW #ifndef CONFIG_MEMLCD_EXTCOMIN_MODE_HW
void (*setpolarity) (bool pol); void (*setpolarity) (bool pol);