Commit graph

30 commits

Author SHA1 Message Date
Niclas Finne 05b10eb9ce Initial WiSMote port based on code from Arago Systems. 2012-01-09 12:25:06 +01:00
Joakim Eriksson 5b1d9617c4 moved io and signal and IAR-GCC checks from driver files into contiki include file 2011-09-26 10:38:41 +02:00
Joakim Eriksson 77ec0bfa0f fixed the z1 platform and generic code used by z1 to work with IAR compiler 2011-05-25 17:21:51 +02:00
Mariano Alvira c857e57d2f msp430: fix "implicit declaration of function" warnings in clock.c, by including watchdog.h 2011-02-21 09:23:52 -08:00
adamdunkels f370b217a5 Turned up the rtimer resolution to 32678 Hz. 2010-12-16 22:50:21 +00:00
adamdunkels 0ed236e774 Bugfix: the clock interrupt now flushes the energy estimator to avoid overflow of the LPM mode 2010-04-04 12:29:50 +00:00
adamdunkels ac172a5575 Turn off LPM mode for clock interrupts to avoid rtimer wrapping during extended LPM 2010-03-29 21:53:32 +00:00
adamdunkels 04cdae05c3 Increased the rtimer granularity: needed to make contikimac work 2010-03-19 13:25:52 +00:00
adamdunkels 465125c5e7 Added support for 32-bit clock ticks: when reading the 32-bit value, make sure that it does not change between readouts to avoid reading right in the middle of it being updated 2010-02-23 18:41:20 +00:00
adamdunkels 4ff6b5460a Removed safeguards around the update code for the timer; turns out they weren't needed (but instead triggered a bug in MSPsim) 2010-01-30 14:03:35 +00:00
adamdunkels 2772d31ae6 Turn off Timer A before modifying its control registers to avoid problems when timer is updated frequently 2010-01-18 21:17:11 +00:00
adamdunkels 9ac4109bad Increased the clock speed to 32768/4 from 32768/8 to provide better accuracy for power profiling of radio CCA checks 2009-12-09 12:55:35 +00:00
adamdunkels f9260c4fae Enable interrupts during the periodic clock processing to allow rtimers to execute on top of the clock 2009-12-08 23:40:14 +00:00
joxe 23b7db88d5 moved rtimer from TimerB to TimerA so that TimerB subsystem is free for other uses 2008-12-02 12:44:48 +00:00
nifi 49f57b7848 changed to use unsigned long for seconds counter 2008-10-10 12:36:58 +00:00
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