CodeWarrier

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CodeWarrier

1,160 次查看
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 项奖励
回复
1 回复

873 次查看
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 项奖励
回复