嵌入式开发者社区
标题: 函数源码的路径查找 [打印本页]
作者: 广州创龙莫工 时间: 2018-8-27 09:27
标题: 函数源码的路径查找
创龙开发板特有的函数在光盘"Include\StarterWare\Drivers\c674x\c6748\TL6748.h"中声明,库文件在"Library\Platform"目录下,源文件在"Application\Platform"目录下。如图所示:
[attach]3592[/attach]
[attach]3593[/attach]
[attach]3594[/attach]
在安装StarterWare后,可在安装目录下找到C6748所有通用库函数和对应的源码(源码在StarterWare的drivers目录下,部分位于其他相关目录下),同时可在安装目录docs文件夹内找到所有库函数的使用方法。
[attach]3595[/attach]
下面具体介绍一下如何查找函数的源码。
以查找TL6748.h中声明的函数"EMACPinMuxSetup"源码为例。
(1)首先将TL6748.h在source insight的软件工具中打开,如图所示:
[attach]3596[/attach]
(2)按住"Ctrl"按键,鼠标点击函数"EMACPinMuxSetup",跳转到相应的原函数,如图所示:
[attach]3597[/attach]
[attach]3598[/attach]
可以看到函数"EMACPinMuxSetup"的源码所存在的路径。
作者: human 时间: 2018-8-27 13:39
不错,适合快速上手。
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) |
Powered by Discuz! X3.4 |