内置

本节内容以屏驱驱动nv3051f1、TP驱动gt911、背光驱动nw9527为例,使用屏驱内置的方法添加新的屏幕,具体内容参考如下:

复制类似的屏驱驱动代码并加入编译

  • 在SDK\customer\peripherals目录下找一个类似且已适配过的屏驱

  • Copy the entire directory and rename it to “nv3051f1”

  • 里面的屏驱.c文件也改成nv3051f1.c, 并修改里面的内容

  • 里面的SConscript文件中的depend宏改为前面添加的LCD_USING_NV3051F1,让新加的文件加入编译

Copy similar driver code and add it to the compilation

  • 在SDK\customer\peripherals目录下找一个类似且已适配过的TP驱动

  • Copy the entire directory and rename it to “gt911”

  • 里面的屏驱.c/.h文件也改成gt911.c/.h, 并修改里面的内容

  • 里面的SConscript文件中的depend宏改为前面添加的TSC_USING_GT911,让新加的文件加入编译

Copy similar driver code and add it to the compilation

  • Find the aw9364 directory under SDK\customer\peripherals,

  • Copy the entire directory and rename it to “nw9527”

  • 里面的驱动.c文件也改成nw9527.c, 并修改里面的内容

  • 里面的SConscript文件中的depend宏改为前面添加的BL_USING_NW9527,让新加的文件加入编译


**注意**:这里驱动名称改为相应的屏驱名称,需要用到哪个(屏驱、TP、背光)驱动添加哪个驱动