This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SAFETI_DIAG_LIB:TPS 驱动程序中的文件命名不一致

Guru**** 2468610 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/674941/safeti_diag_lib-inconsistent-file-naming-in-tps-driver

器件型号:SAFETI_DIAG_LIB

大家好、

我正在尝试使用针对 RM48的预构建 TPS 驱动程序。 在 TPS 驱动程序用户指南(v2.3.1和 v2.4.0)中、我应该包含 Tps_Driver.h (并链接库)。
这给了我一些关于文件名的问题。 我在下面的描述中进行了相当详细的介绍、不是去 NITPick、而是为了精确、让您更容易解决这个问题。
但是、Tps_Driver.h 文件包括其他文件:

#include "tps_Interface.h"
#include "tps_types.h"
#include "tps_DebugSupport.h"
#include "reg_bitdefn_ESM.h"
#include

这里的第一个问题是"tps_Interface.h"和 "tps_types.h"文件被命名为"tps_Interface.h"和"tps_types.h"。
(请注意、"TPS_DebugSupport.h"文件仍在所有 cap 中写入 TPS。 在 Tps_priv.h Tps_Config.h 中包含"tps_Config.h"、而在 TPS_DebugSupport.h 中包含"tps_Config.h")

第二个问题是"tps_Driver.h"头文件(位于 include 目录中)中的"tps_Interface.h"头文件(位于源目录中)。

链接 TPS 驱动程序库时、您应该只需要包含目录中的头文件。 位于源目录中的头文件仅在您希望从源编译库时才相关。

因此、我希望在将来的发行版中要求对文件进行命名并包含一致性、并从库的头文件中删除不必要的(实现定义)包含项。

提前感谢、致以诚挚的问候、

Karel

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Karel、

    感谢您的重要建议。 我将向 SW 开发团队报告。