aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-09-30 16:25:46 +1000
committerinmarket <andrewh@inmarket.com.au>2013-09-30 16:25:46 +1000
commitfd01f1a4f3569e84884c46388e2e3df7e1647365 (patch)
tree47052aea2e32693b7da189be0e8dce12cf88033f /drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h
parent07f96ec3ee34fd4b4fffe2e6afbe50e982555fcb (diff)
downloaduGFX-fd01f1a4f3569e84884c46388e2e3df7e1647365.tar.gz
uGFX-fd01f1a4f3569e84884c46388e2e3df7e1647365.tar.bz2
uGFX-fd01f1a4f3569e84884c46388e2e3df7e1647365.zip
ILI9320 driver ported to streaming interface.
Diffstat (limited to 'drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h')
-rw-r--r--drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h
index 177a7cd8..faa54a3e 100644
--- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h
+++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h
@@ -20,7 +20,7 @@
#define noinline __attribute__((noinline))
#endif
-static void gdisp_lld_init_board(void) {
+static void init_board(void) {
// RST
palSetPadMode(IOPORTA, 7, PAL_MODE_OUTPUT);
palClearPad(IOPORTA, 7);
@@ -56,14 +56,14 @@ static void gdisp_lld_init_board(void) {
#define PmpWaitBusy() do {} while (PMMODEbits.BUSY)
-static noinline void gdisp_lld_reset_pin(bool_t state) {
+static noinline void setpin_reset(bool_t state) {
if (state)
palClearPad(IOPORTA, 7);
else
palSetPad(IOPORTA, 7);
}
-static noinline void gdisp_lld_write_index(uint16_t data) {
+static noinline void write_index(uint16_t data) {
volatile uint16_t dummy;
PmpWaitBusy();
@@ -76,18 +76,24 @@ static noinline void gdisp_lld_write_index(uint16_t data) {
(void)dummy;
}
-static noinline void gdisp_lld_write_data(uint16_t data) {
+static noinline void write_data(uint16_t data) {
PMDIN = data;
PmpWaitBusy();
}
-static noinline uint16_t gdisp_lld_read_data(void) {
+static inline void setreadmode(void) {
+}
+
+static inline void setwritemode(void) {
+}
+
+static noinline uint16_t read_data(void) {
PmpWaitBusy();
return PMDIN;
}
/* if not available, just ignore the argument and return */
-static void gdisp_lld_backlight(uint8_t percentage) {
+static void set_backlight(uint8_t percentage) {
if (percentage)
palClearPad(IOPORTD, 3);
else
@@ -101,6 +107,7 @@ static inline void acquire_bus(void) {
static inline void release_bus(void) {
/* Nothing to do here since LCD is the only device on that bus */
}
+
#endif /* GDISP_LLD_BOARD_H */
/** @} */