CodeWarrier

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CodeWarrier

738 Views
a8Chcx
Contributor V

Hi,

I am using CodeWarrior IDE 5.7.0 for MCF5282.

I am trying to use gmtime function and got failed.

Is there anyone who can tell me if time related functions are supported? Which CodeWarrior IDE should I use?

Thanks,

Christie

0 Kudos
1 Reply

451 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Christie,

Unfortunately the time functions are not implemented for ColdFire. The header file (time.h) is provided for compatibility only, the implementation is fully hardware dependent. implementations for these functions cannot be provided because different targets may use different ways to count the time.

If you need it, you have to write your own functions (if you have some Real Time Clock component on your board).


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos