aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/ED060SC4/gdisp_lld_board_example.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/ED060SC4/gdisp_lld_board_example.h')
-rw-r--r--drivers/gdisp/ED060SC4/gdisp_lld_board_example.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gdisp/ED060SC4/gdisp_lld_board_example.h b/drivers/gdisp/ED060SC4/gdisp_lld_board_example.h
index 98f05ee8..6cda606b 100644
--- a/drivers/gdisp/ED060SC4/gdisp_lld_board_example.h
+++ b/drivers/gdisp/ED060SC4/gdisp_lld_board_example.h
@@ -45,7 +45,7 @@
/* Set up IO pins for the panel connection. */
-static inline void init_board(void) {
+static GFXINLINE void init_board(void) {
/* Main SMPS power control, active low
* (open collector so that MOSFET gate can be pulled up to Vbat) */
palWritePad(GPIOC, GPIOC_SMPS_CTRL, true);
@@ -69,58 +69,58 @@ static void eink_delay(int us)
}
/* Turn the E-ink panel Vdd supply (+3.3V) on or off. */
-static inline void setpower_vdd(bool_t on) {
+static GFXINLINE void setpower_vdd(bool_t on) {
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 inline void setpower_vneg(bool_t on) {
+static GFXINLINE void setpower_vneg(bool_t on) {
palWritePad(GPIOA, GPIOA_VNEG_CTRL, on);
}
/* Turn the E-ink panel positive supplies (-15V, -20V) on or off. */
-static inline void setpower_vpos(bool_t on) {
+static GFXINLINE void setpower_vpos(bool_t on) {
palWritePad(GPIOA, GPIOA_VPOS_CTRL, on);
}
/* Set the state of the LE (source driver Latch Enable) pin. */
-static inline void setpin_le(bool_t on) {
+static GFXINLINE void setpin_le(bool_t on) {
palWritePad(GPIOB, GPIOB_EINK_LE, on);
}
/* Set the state of the OE (source driver Output Enable) pin. */
-static inline void setpin_oe(bool_t on) {
+static GFXINLINE void setpin_oe(bool_t on) {
palWritePad(GPIOB, GPIOB_EINK_OE, on);
}
/* Set the state of the CL (source driver Clock) pin. */
-static inline void setpin_cl(bool_t on) {
+static GFXINLINE void setpin_cl(bool_t on) {
palWritePad(GPIOB, GPIOB_EINK_CL, on);
}
/* Set the state of the SPH (source driver Start Pulse Horizontal) pin. */
-static inline void setpin_sph(bool_t on) {
+static GFXINLINE void setpin_sph(bool_t on) {
palWritePad(GPIOB, GPIOB_EINK_SPH, on);
}
/* Set the state of the D0-D7 (source driver Data) pins. */
-static inline void setpins_data(uint8_t value) {
+static GFXINLINE void setpins_data(uint8_t value) {
palWriteGroup(GPIOB, 0xFF, GPIOB_EINK_D0, value);
}
/* Set the state of the CKV (gate driver Clock Vertical) pin. */
-static inline void setpin_ckv(bool_t on) {
+static GFXINLINE void setpin_ckv(bool_t on) {
palWritePad(GPIOB, GPIOB_EINK_CKV, on);
}
/* Set the state of the GMODE (gate driver Gate Mode) pin. */
-static inline void setpin_gmode(bool_t on) {
+static GFXINLINE void setpin_gmode(bool_t on) {
palWritePad(GPIOC, GPIOC_EINK_GMODE, on);
}
/* Set the state of the SPV (gate driver Start Pulse Vertical) pin. */
-static inline void setpin_spv(bool_t on) {
+static GFXINLINE void setpin_spv(bool_t on) {
palWritePad(GPIOB, GPIOB_EINK_SPV, on);
}