Direct Drive LCD Design Guide
4.1.3 LCDInit
Direct Driver Initialization.
Format
LCDErrorType LCDInit(void);
Parameters
none
Return Values
0 if successful, non-zero if failure.
Properties
Prototyped in file ”DirectLCD.h”
Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family.
Description
This function is used to initialize the hardware necessary for the Direct Drive LCD to execute. This function
uses the configuration macros to set up the TPU and ExDMAC peripherals to transfer data from the frame
RAM to the LCD panel. After this function successfully executes the transfer of data to the panel by
ExDMAC will start and interrupts will be generated on every line to service the ExDMAC.
Example
{
LCDErrorType error = LCDInit();
if (error != 0) …
}
16