4 Oct 2007 16:15
contiki-2.x/cpu/msp430 clock.c,1.8,1.9
Update of /cvsroot/contiki/contiki-2.x/cpu/msp430
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22393/cpu/msp430
Modified Files:
clock.c
Log Message:
support for delayed interrupts
earlier TACCR1 could be set to already passed time if timer A interrupts was delayed
Index: clock.c
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/cpu/msp430/clock.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** clock.c 3 Sep 2007 19:22:37 -0000 1.8
--- clock.c 4 Oct 2007 14:14:58 -0000 1.9
***************
*** 48,51 ****
--- 48,53 ----
#define MAX_TICKS (~((clock_time_t)0) / 2)
+ #define LT(a,b) ((signed short)((a)-(b)) < 0)
+
static volatile clock_time_t count = 0;
static unsigned short last_tar = 0;
***************
*** 54,61 ****
ENERGEST_ON(ENERGEST_TYPE_IRQ);
(Continue reading)
RSS Feed