Commit Graph

15 Commits

Author SHA1 Message Date
fros4943
b90075ea0a bug fix, msp430 hw bug (undocumented):
when in continuous/compare mode the interrupt handler may get called before CCR==TR.

behavior observed when the timer is toggled between STOP/CONT in an external interrupt handler (serial input).

possibly this problem may also affect watchdog timer/timer B
2008-09-16 12:00:48 +00:00
adamdunkels
fc6d059d24 Added a clock_seconds() function prototype to core/sys/clock.h, that returns seconds in 32 bit format. On platforms like the MSP430, which has a 16 bit native datatype, this cannot be implemented with an interrupt tick that increments a 32 bit value because access is not atomic. Instead, the MSP430 code increments 16 bit seconds value and converts this into a 32 bit value through an offset calculation. If the new value is smaller than the last check, the offset is incremented by 65536. This change also means that CLOCK_CONF_SECOND must be a power of two because a modulo operation is used inside the periodic tick interrupt handler. 2008-07-07 23:38:09 +00:00
adamdunkels
64b6663b11 moved energest from lib/ to sys/ 2008-07-03 23:59:20 +00:00
adamdunkels
b50d2b02ee Reformatting to comply with code style 2008-01-08 08:01:41 +00:00
adamdunkels
f192211444 Added a hack function called clock_counter() to make the current prototype profiling code run on the MSP430 platform 2007-11-12 21:07:39 +00:00
joxe
7fe87db86a fixed some timer interrupt bugs and reimplemented clock_fine to avoid disabling interrupts 2007-10-04 20:45:29 +00:00
fros4943
5f63995265 support for delayed interrupts
earlier TACCR1 could be set to already passed time if timer A interrupts was delayed
2007-10-04 14:14:58 +00:00
joxe
aaae9f4cf8 removed redundant code - configuration of basic clock subsystem in clock and rtimer_arch 2007-09-03 19:22:37 +00:00
adamdunkels
9a5bac6282 Added energy estimation 2007-05-22 20:59:11 +00:00
joxe
8add3d4660 corrected comments 2007-04-02 16:32:20 +00:00
adamdunkels
6a8d8e3abf Added experimental clock_fine() function 2007-03-25 21:51:31 +00:00
bg-
157ee59ff5 Obob bug spotted by nfi. 2006-08-25 09:40:21 +00:00
bg-
20bac141ca Use LPM4_EXIT to return from sleep on msp430. 2006-08-17 15:41:13 +00:00
bg-
b065b27759 * Deal with numerical overflows. 2006-08-17 15:25:46 +00:00
adamdunkels
c9e808d638 Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00