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.

How to get year, month, day, hour, minute and second?

Other Parts Discussed in Thread: SYSBIOS

Hello,

I am using CC26xx for application implementation, dose CC26xx can get "hwclock"?

  • Isaac,

    There isn’t a single API (like hwclock for Linux).

    What development tools are you using?

    If you are using the TI compiler, I think there is a way to do what you want using the “Seconds” module along with “localtime()”. There is a short snippet of code for this in the Seconds module documentation. In your TI-RTOS install, open “tirtos_docs_overview.html”, click on “TI-RTOS Kernel Runtime APIs and Configuration (cdoc)”, then click on the “ti.sysbios.hal” package, and then the “Seconds” module.

    Scott