22 #include "common/delay.h" 23 #include "config/hal.h" 27 void drv_LcdInterface_SpiSend(uint8_t data);
35 #define LCD_CS_nSELECTED LCD_CS_SetHigh 36 #define LCD_CS_SELECTED LCD_CS_SetLow 38 #define LCD_RS_COMMAND LCD_RS_SetLow 39 #define LCD_RS_DATA LCD_RS_SetHigh 52 void drv_LcdInterface_Initialize(
void)
60 LCD_RST_SetDigitalOutput();
61 LCD_CS_SetDigitalOutput();
62 LCD_SCL_SetDigitalOutput();
63 LCD_SDI_SetDigitalOutput();
64 LCD_RS_SetDigitalOutput();
76 void drv_LcdInterface_Reset(
void)
92 void drv_LcdInterface_SendCmd(uint8_t cmd)
96 drv_LcdInterface_SpiSend(cmd);
108 extern void drv_LcdInterface_SendChar(
const char c)
112 drv_LcdInterface_SpiSend(c);
128 void drv_LcdInterface_SpiSend(uint8_t data)
132 for(mask = 0x80; mask != 0; mask >>= 1)