53 #define d4dlcdhw_gpio8080_8b_ID 1
58 #if (D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_gpio8080_8b_ID)
66 #if D4D_COLOR_SYSTEM != D4D_COLOR_SYSTEM_RGB565
67 #error The eGUI low level driver "d4dlcdhw_gpio8080_8b" not supported selected type of D4D_COLOR_SYSTEM. To run this driver just select D4D_COLOR_SYSTEM_RGB565.
73 static unsigned char D4DLCDHW_Init_Gpio8080_8b(
void);
74 static unsigned char D4DLCDHW_DeInit_Gpio8080_8b(
void);
75 static void D4DLCDHW_SendDataWord_Gpio8080_8b(
unsigned short value);
76 static void D4DLCDHW_SendCmdWord_Gpio8080_8b(
unsigned short cmd);
77 static unsigned short D4DLCDHW_ReadDataWord_Gpio8080_8b(
void);
78 static unsigned short D4DLCDHW_ReadCmdWord_Gpio8080_8b(
void);
93 D4DLCDHW_Init_Gpio8080_8b,
94 D4DLCDHW_SendDataWord_Gpio8080_8b,
95 D4DLCDHW_SendCmdWord_Gpio8080_8b,
96 D4DLCDHW_ReadDataWord_Gpio8080_8b,
97 D4DLCDHW_ReadCmdWord_Gpio8080_8b,
98 D4DLCDHW_PinCtl_Gpio8080_8b,
99 D4DLCD_FlushBuffer_Gpio8080_8b,
100 D4DLCDHW_DeInit_Gpio8080_8b
125 static unsigned char D4DLCDHW_Init_Gpio8080_8b(
void)
127 #ifdef D4DLCD_DISPLAY_MCU_USER_INIT
128 D4DLCD_DISPLAY_MCU_USER_INIT
160 static unsigned char D4DLCDHW_DeInit_Gpio8080_8b(
void)
174 static void D4DLCDHW_SendDataWord_Gpio8080_8b(
unsigned short value)
179 D4DLCD_DATA_WRITE((
unsigned char) ((value >> 8) & 0xff));
183 D4DLCD_DATA_WRITE((
unsigned char) (value & 0xff));
199 static void D4DLCDHW_SendCmdWord_Gpio8080_8b(
unsigned short cmd)
202 D4DLCDHW_SendDataWord_Gpio8080_8b(cmd);
217 static unsigned short D4DLCDHW_ReadDataWord_Gpio8080_8b(
void)
219 unsigned short value;
231 value |= (
unsigned short) ((D4DLCD_DATA << 8) & 0xff00);
248 static unsigned short D4DLCDHW_ReadCmdWord_Gpio8080_8b(
void)
250 unsigned short tmp_res;
252 tmp_res = D4DLCDHW_ReadDataWord_Gpio8080_8b();
281 D4DLCD_DEASSERT_RESET;
292 #ifdef D4DLCD_BACKLIGHT
298 INPUT(D4DLCD_BACKLIGHT);
301 D4DLCD_DEASSERT_BACKLIGHT;
304 D4DLCD_ASSERT_BACKLIGHT;
343 #endif //(D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_gpio8080_8b_ID)
D4D low level standard LCD Hardware interface API structure.
D4D driver SSD1289 hardware level LCD header file.
D4D Driver main header file.
LCD device chip select signal.
D4DHW_PIN_STATE
D4D low level MCU pin state enumeration type.
D4DLCD_FLUSH_MODE
D4D low level eGUI flush screen types enumeration.
D4D Driver private header file.
D4DLCDHW_PINS
D4D low level MCU types definition for general LCD screen control signals.
Switch pin to input mode (equivalent to high-Z)
Switch pin to output mode.
Set pin output register to logic 1.
LCD device backlight enable signal.
#define D4D_UNUSED(x)
Macro used just for notify compiler that the input parameter is not used.
Set pin output register to logic 0.
D4D driver - resistive touch screen driver function header file.