Help With time.h, time using RTC

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

Help With time.h, time using RTC

1,057 次查看
SecondTechCo
Contributor IV

I would like to use time functions from the EWL.    All of the fucntions in time.h are based on time in seconds since a certain date.   I would like to use the microcontroller RTC interrupt to generate the time in seconds.  I cannot find anything which lest me pass in the time seconds to the time functions.  

标签 (1)
0 项奖励
回复
2 回复数

794 次查看
CrasyCat
Specialist III

Hello

 

  You need to configure the EWL libraries in order to enable usage of time function.

 

  Please refer to section "Configuring Time and Date" in "EWLCReference.pdf" for more info.

 

CrasyCat

0 项奖励
回复

794 次查看
SecondTechCo
Contributor IV

Thanks.  That's was helpful !  My problem turned out that when I used the EWL there are multiple files which get included automatically that redefine the flags used by EWL for truing on and off time support.  I would hope this would only be included in time.h.

0 项奖励
回复