
Oct. 04, 2018
Page
7
of 18
Rev 1.00
M480 emWin
The project structure is shown in the following figure. The project contains two targets:
emWin_SimpleDemo
: stores touch screen calibration parameters in APROM;
emWin_SimpleDemo_SD
:
stores touch screen calibration parameters in a SD card.
The Libraries group contains low level driver and system startup code. The emWin group
contains emWin library and panel configuration for the NuMicro
®
family. The Application group
contains the C code generated by emWin GUIBuilder. The tslib group is the touch screen
library. The FatFs group contains the file system library to access the SD card. The src group
contains the main file.
3.2 System Initialization
The system initialization code is located in main function, including peripheral clock
preparation, multi- function pin configuration, and UART debug port setting. Also, a 1000Hz
timer is configured to keep track of time elapsed.
int main(void)
{