zephyr 配置学习

1、

board目录下的dtsi -> build目录下的dts-> build/include下的devicetree_generated.h->include/devicetree.h(设备树头文件)

 

2、zephyr官方资料学习

https://docs.panchip.com/pan1080dk-doc/0.4.1/01_quick_start/index.html

 

 

3、上电执行路径

z_prep_c(reset.S)
    z_prep_c(prep_c.c)
        z_cstart(init.c)
            z_sys_init_run_level(init.c)
                do_device_init(init.c)

 其中z_sys_init_run_level里执行的文件,是根据driver目录下

 

4、底层创建驱动介绍

  https://blog.csdn.net/bjbz_cxy/article/details/129342101

 https://developers.goodix.com/zh/bbs/blog_detail/a2022a335bdd4de0b381133145ee6e09

5、应用层使用外设驱动介绍

     https://docs2.listenai.com/x/IxnI7Dow90o

6、设备树介绍

   https://www.cnblogs.com/iini/p/17211026.html

https://blog.csdn.net/huohongpeng/article/details/105599906

https://lgl88911.github.io/2020/03/14/Zephyr%E8%AE%BE%E5%A4%87%E6%A0%91%E7%94%9F%E6%88%90%E6%B5%81%E7%A8%8B/

https://blog.csdn.net/u011638175/article/details/121401579

通过script/dts下的文件去生成devicetree_generated.h文件

posted @ 2024-08-25 18:19  cogitoergosum  阅读(11)  评论(0编辑  收藏  举报