[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2355] Reworked (yet again) the description of system_
From: |
Mike Rice |
Subject: |
[avr-libc-commit] [2355] Reworked (yet again) the description of system_tick(). |
Date: |
Sat, 20 Apr 2013 11:32:50 +0000 |
Revision: 2355
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2355
Author: swfltek
Date: 2013-04-20 11:32:50 +0000 (Sat, 20 Apr 2013)
Log Message:
-----------
Reworked (yet again) the description of system_tick(). I don't know how to
describe it any more clearly than it is now.
Also removed my time zone from the figure for the 'end of time'.
Modified Paths:
--------------
trunk/avr-libc/include/time.h
Modified: trunk/avr-libc/include/time.h
===================================================================
--- trunk/avr-libc/include/time.h 2013-04-19 21:56:17 UTC (rev 2354)
+++ trunk/avr-libc/include/time.h 2013-04-20 11:32:50 UTC (rev 2355)
@@ -59,7 +59,7 @@
/**
time_t represents seconds elapsed from Midnight, Jan 1 2000 UTC (the
Y2K 'epoch').
- Its range allows time to be handled properly up to Tue Feb 7 01:28:15
2136.
+ Its range allows time to be handled properly up to Tue Feb 7 06:28:15
2136.
*/
typedef uint32_t time_t;
@@ -235,15 +235,15 @@
Maintain the system time by calling this function at a rate of 1 Hertz.
It is anticipated that this function will typically be called from
within an
- Interrupt Service Routine, (though that is not required). It therefore
includes all necessary
- prologue and epilogue, allowing it to be called from within a 'naked'
ISR, which will prevent
- an unnecessary cpu register 'spill'
+ Interrupt Service Routine, (though that is not required). It therefore
includes code which
+ makes it simple to use from within a 'Naked' ISR, avoiding the cost of
saving and restoring
+ all the cpu registers.
Such an ISR may resemble the following example...
- ISR(TIMER2_COMPA_vect, ISR_NAKED)
+ ISR(RTC_OVF_vect, ISR_NAKED)
{
- system_tick_i();
+ system_tick();
reti();
}
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2355] Reworked (yet again) the description of system_tick().,
Mike Rice <=