内置¶
本节内容以屏驱驱动nv3051f1
、TP驱动gt911
、背光驱动nw9527
为例,使用屏驱内置的方法添加新的屏幕,具体内容参考如下:
复制类似的屏驱驱动代码并加入编译¶
Copy similar driver code and add it to the compilation¶
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、背光)驱动添加哪个驱动