Help With time.h, time using RTC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Help With time.h, time using RTC

1,050件の閲覧回数
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 返答(返信)

787件の閲覧回数
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 件の賞賛
返信

787件の閲覧回数
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 件の賞賛
返信