To port the MDD layer of the touch screen driver to the drivers folder of the BSP package, we need to figure out how to compile and generate tchmain. Lib in public"
0k5/9 F: \ wince600 \ public \ common \ cesysgen \ makefile:
Figure 1
Figure 1 shows tchmdd. lib is created by tchmain. lib, tch_trns.lib, or tchbasic. lib, which is compiled and generated under the \ wince600 \ public \ common \ oak \ drivers \ touch folder, as shown in
Figure 2
Let's take a look at the contents of \ SRC \ drivers \ Touch \ sources before transplantation as follows:
Figure 3
Therefore, we also need to copy touch. Def under \ wince600 \ public \ common \ oak \ Inc to the touch of our BSP driver file. Here we will change its name to s3c2450_touch.def. After transplantation, the file structure in the \ SRC \ drivers \ touch folder is as follows:
Figure 4
Here, we can see how the sources file in the DLL folder organizes the compilation of the s3c2450_touch.dll:
Figure 5
At this point, the process of porting the touch screen driver MDD to BSP is completed, and the touch screen driver can be easily debugged later.