Increased the rtimer granularity: needed to make contikimac work
This commit is contained in:
parent
9d06d84255
commit
04cdae05c3
2 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: clock.c,v 1.22 2010/02/23 18:41:20 adamdunkels Exp $
|
* @(#)$Id: clock.c,v 1.23 2010/03/19 13:25:52 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,8 +140,8 @@ clock_init(void)
|
||||||
/* Select SMCLK (2.4576MHz), clear TAR */
|
/* Select SMCLK (2.4576MHz), clear TAR */
|
||||||
/* TACTL = TASSEL1 | TACLR | ID_3; */
|
/* TACTL = TASSEL1 | TACLR | ID_3; */
|
||||||
|
|
||||||
/* Select ACLK 32768Hz clock, divide by 4 */
|
/* Select ACLK 32768Hz clock, divide by 2 */
|
||||||
TACTL = TASSEL0 | TACLR | ID_2;
|
TACTL = TASSEL0 | TACLR | ID_1;
|
||||||
|
|
||||||
/* Initialize ccr1 to create the X ms interval. */
|
/* Initialize ccr1 to create the X ms interval. */
|
||||||
/* CCR1 interrupt enabled, interrupt occurs when timer equals CCR1. */
|
/* CCR1 interrupt enabled, interrupt occurs when timer equals CCR1. */
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: rtimer-arch.h,v 1.6 2009/12/09 12:55:35 adamdunkels Exp $
|
* $Id: rtimer-arch.h,v 1.7 2010/03/19 13:25:52 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include "sys/rtimer.h"
|
#include "sys/rtimer.h"
|
||||||
|
|
||||||
#define RTIMER_ARCH_SECOND (4096U*2)
|
#define RTIMER_ARCH_SECOND (4096U*4)
|
||||||
|
|
||||||
#define rtimer_arch_now() (TAR)
|
#define rtimer_arch_now() (TAR)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue