|
|
@ -76,44 +76,44 @@ static void eink_delay(int us) { |
|
|
|
} |
|
|
|
|
|
|
|
/* Turn the E-ink panel Vdd supply (+3.3V) on or off. */ |
|
|
|
static GFXINLINE void setpower_vdd(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpower_vdd(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_SMPS_CTRL, !on); |
|
|
|
palWritePad(GPIOA, GPIOA_EINK_VDD, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Turn the E-ink panel negative supplies (-15V, -20V) on or off. */ |
|
|
|
static GFXINLINE void setpower_vneg(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpower_vneg(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOA, GPIOA_VNEG_CTRL, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Turn the E-ink panel positive supplies (-15V, -20V) on or off. */ |
|
|
|
static GFXINLINE void setpower_vpos(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpower_vpos(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOA, GPIOA_VPOS_CTRL, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the LE (source driver Latch Enable) pin. */ |
|
|
|
static GFXINLINE void setpin_le(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_le(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_EINK_LE, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the OE (source driver Output Enable) pin. */ |
|
|
|
static GFXINLINE void setpin_oe(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_oe(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_EINK_OE, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the CL (source driver Clock) pin. */ |
|
|
|
static GFXINLINE void setpin_cl(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_cl(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_EINK_CL, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the SPH (source driver Start Pulse Horizontal) pin. */ |
|
|
|
static GFXINLINE void setpin_sph(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_sph(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_EINK_SPH, on); |
|
|
|
} |
|
|
@ -125,19 +125,19 @@ static GFXINLINE void setpins_data(GDisplay *g, uint8_t value) { |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the CKV (gate driver Clock Vertical) pin. */ |
|
|
|
static GFXINLINE void setpin_ckv(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_ckv(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_EINK_CKV, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the GMODE (gate driver Gate Mode) pin. */ |
|
|
|
static GFXINLINE void setpin_gmode(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_gmode(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOC, GPIOC_EINK_GMODE, on); |
|
|
|
} |
|
|
|
|
|
|
|
/* Set the state of the SPV (gate driver Start Pulse Vertical) pin. */ |
|
|
|
static GFXINLINE void setpin_spv(GDisplay *g, bool_t on) { |
|
|
|
static GFXINLINE void setpin_spv(GDisplay *g, gBool on) { |
|
|
|
(void) g; |
|
|
|
palWritePad(GPIOB, GPIOB_EINK_SPV, on); |
|
|
|
} |
|
|
|