Turn off Timer A before modifying its control registers to avoid problems when timer is updated frequently
This commit is contained in:
parent
5fc17c4f04
commit
2772d31ae6
2 changed files with 8 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rtimer-arch.c,v 1.11 2009/12/08 23:39:45 adamdunkels Exp $
|
||||
* $Id: rtimer-arch.c,v 1.12 2010/01/18 21:17:11 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -81,6 +81,8 @@ void
|
|||
rtimer_arch_schedule(rtimer_clock_t t)
|
||||
{
|
||||
PRINTF("rtimer_arch_schedule time %u\n", t);
|
||||
|
||||
|
||||
TACTL &= ~MC1;
|
||||
TACCR0 = t;
|
||||
TACTL |= MC1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue