相关疑难解决方法(0)

了解 ctags 文件格式

我使用“Exhuberant ctags”来索引我的 c 项目中的所有标签。c-project 是 Cortex-M7 微控制器的嵌入式软件。结果是一个标签文件。我正在尝试阅读该文件并理解所写的内容。
根据我找到的 ctags 和 Exhuberant ctags 的文档,我可以掌握大多数行的含义。例如:

ADC3    .\Drivers\CMSIS\Device\ST\STM32F7xx\Include\stm32f767xx.h   1525;"  d
Run Code Online (Sandbox Code Playgroud)

这行的意思是:

  • 已找到名称为 的标签ADC3
  • 该标签可在文件中找到.\Drivers\CMSIS\Device\ST\STM32F7xx\Include\stm32f767xx.h
  • 该标签位于1525该文件中的行。
  • 标签是 type d- 这是一个“宏定义”。

到目前为止,一切都很好。但是标签文件中有很多行我无法理解。例如:

A0  .\Drivers\CMSIS\Include\arm_math.h  /^    q15_t A0;           \/**< The derived gain, A0 = Kp + Ki + Kd . *\/$/;"   m   struct:__anon68
Run Code Online (Sandbox Code Playgroud)

和这个:

ABFSR   .\Drivers\CMSIS\Include\core_cm7.h  /^  __IOM uint32_t ABFSR;                  \/*!< Offset: 0x2A8 (R\/W)  Auxiliary Bus Fault Status Register *\/$/;"  m   struct:__anon187
Run Code Online (Sandbox Code Playgroud)

和这个:

ABR .\Drivers\CMSIS\Device\ST\STM32F7xx\Include\stm32f767xx.h   /^  __IO uint32_t ABR; …
Run Code Online (Sandbox Code Playgroud)

arm ctags exuberant-ctags cortex-m

5
推荐指数
1
解决办法
2571
查看次数

标签 统计

arm ×1

cortex-m ×1

ctags ×1

exuberant-ctags ×1