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.

[参考译文] CCS/TM4C1294NCPDT:有关使用 umktime()和 ulocaltime()的问题

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/619752/ccs-tm4c1294ncpdt-question-about-using-umktime-and-ulocaltime

器件型号:TM4C1294NCPDT

工具/软件:Code Composer Studio

我使用的是 TM4C1294NCPDT CPU、CCS 6.1.2、TIRTOS 2.16.0.08和编译器5.2.7。

我想使用函数 umktime()和 ulocaltime()来与 RTC 配合使用,并且有一个链接错误,其中无法链接函数 umktime()和 ulocaltime()。  

 未定义 的首次引用              
 符号                          
 ------  --------              
 ulocaltime ./SourceCode/RTC_interface.obj
 umktime   ./SourceCode/RTC_interface.obj

在链接器中、我包含库 driverlib.lib 和 libc.a.  我在任何文档中都找不到函数 umktime()和 ulocaltime(),以了解我应该链接的库。对于函数 umktime()和 ulocaltime()。   

我有两个问题...  1什么文档具有函数 umktime()和 ulocaltime();2我是否需要链接另一个库以构建 CCS 工程以使用函数 umktime()和 ulocaltime()?

谢谢、

道格

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

    SW-TM4C-UTILS-UG 文档中对它们进行了说明:[INSTALL Path]\tirtos_tivac_2_16_00_08\products\TivaWare_C_Series-2.1.71b\docs\SW-TM4C-UTILS-UG-2.1.1.71.pdf

    这些函数存在于 ustdlib.c/.h 中、因此您需要将其包含在内。 这些文件位于[Install Path]\tirtos_tivac_2_16_00_08\products\TivaWare_C_Series-2.1.71b\utils 中
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您提供有关问题已解决的信息。

    道格