AW: [En-Nut-Discussion] Synching Calldirect using NutOS
Oliver Schulz
Oliver.Schulz at bong.de
Tue Oct 14 16:09:57 CEST 2003
Hi Fahad, Hi All,
Due to the very new (now working :-) seconds counter and the function
NutGetSeconds in Nut/OS, I'am currently redesigning my time functions.
'time', 'gmtime' and 'stime' are finished but not testet yet (will do it
this evening). 'mktime' is still missing, but I do it soon.
(BTW, the function names came from the standard c lib.)
If everything is fine then, the routines are a good candidate for the
nutcrt lib, I think. I will ask Harald.
If you want, I can send you the stuff, but I need you mail address!
(Contact me via mailto:olischulz at web.de)
Regards,
Oliver.
-----Ursprungliche Nachricht-----
Von: en-nut-discussion-admin at egnite.de
[mailto:en-nut-discussion-admin at egnite.de]Im Auftrag von Fahad G.
Gesendet: Dienstag, 14. Oktober 2003 04:08
An: en-nut-discussion at egnite.de
Betreff: RE: [En-Nut-Discussion] Synching Calldirect using NutOS
Hi Oliver,
If you don't mind my asking you, could I have a copy of this code as
well? I
need to do something similar and it would help me much if you could
share
your code with me. Thanks.
Cheers,
Fahad
-----Original Message-----
From: en-nut-discussion-admin at egnite.de
[mailto:en-nut-discussion-admin at egnite.de] On Behalf Of Oliver Schulz
Sent: Tuesday, October 14, 2003 12:17 AM
To: en-nut-discussion at egnite.de
Subject: AW: [En-Nut-Discussion] Synching Calldirect using NutOS
Hi All,
Last weekend I wrote some code to get something similar like a RTC...
It's based on the standard (or just MS?) C struct '_tm' and uses the
timer0 interrupt to update the "current" time and date on a per second
base.
Included leap year and day of week calculation.
If Harald is interested, perhaps it can be added to the Nut/OS. Please
let me know!
Oliver.
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list