I have checked in the following 3 new modules/interfaces into tinyos-1.x
main tree. Timer, AbsoluteTimer, LogicalTime and SysTime.
The new Timer module replaces the old Timer. 
The new Timer module has a totally difference implementation.
It is build on top of AbsoluteTimer. The following simple diagram shows
the dependency of these modules:
        -----------------
          Timer
        -----------------
         AbsoluteTimer
        -----------------
         LogicalTime
        -----------------
        Clock | SysTime
        -----------------
As a result any application that uses existing Timer will have the above
modules wired in transparently.

The new Timer requires that Timer.StdControl.init and
Timer.StdControl.start 
Commands are called before Timer.start(). If your application timer does
not work, this is the first place to check. 

Other issues: 
============= 
1. We have not yet simulate the read/write registers used in SysTime
properly. But you should be able to compile the simulator. 
If make pc fails, please get latest tos/platform/pc/SysTimeC.nc file.

2. Mica motes misses clock interrupt from time to time. I can not
eliminate it because they are caused by HW and interrupt queue
length(1). But I am working on to reduce the frequency it happens and
its impact.

Bug report:
===========
If you have any problem related to these new modules. Please email me at
[EMAIL PROTECTED]

Regards
Su Ping

   

Su Ping
Intel Research, Berkeley Lab.
2150 Shattuck Ave. 
Berkeley CA 94704
Tel. 510 495 3082
Fax 510 495 3049
Email: [EMAIL PROTECTED]


-----Original Message-----
From: Kristin Wright [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 10:27 AM
To: Su Ping
Subject: Fw: More info on SysTime thing.

Another wrong address.
-kw

----- Original Message -----
From: "Kristin Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 10:09 AM
Subject: More info on SysTime thing.


> Here is some info -- looks helpful to me.
> -kw
>
> ----- Original Message -----
> From: "William J Maurer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, March 10, 2003 5:18 PM
> Subject: [Tinyos-users] Recipe to get "make pc" to work, was Interrupt
> handler scraped by tool chain
>
>
> > I have been able to make get "make pc" working and am happily
> > simulating with the latest and greatest from cvs by doing 2
> > modifications to tos/platform/pc/SysTimeC.nc and 1 modification to
the
> > app(configuration) being compiled.
> >
> > 1. using your observation "Functions that aren't called aren't
included
in
> the app.c file", I commented out the guts of
> > SysTimeC->SysTime.set(uint32_t  time). This is to get it to stop
> > the:
> > "implicit declaration of function `__outw_atomic'"
> > warnings.
> >
> >     command result_t SysTime.set(uint32_t  time){
> >       /*
> >         char temp;
> >         uint16_t t = time & 0xFFFF;
> >         // write into  hardware timer1's TCNT1 register
> >         __outw_atomic(t, TCNT1L);
> >         temp = TOSH_interrupt_disable();
> >         high16 = time >>16 ;
> >         if (temp) TOSH_interrupt_enable();
> >       */
> >         return SUCCESS;
> >     }
> >
> > 2. I couldn't get the:
> > "old-style parameter lists not supported"
> > error fixed using:
> >     TOSH_INTERRUPT(SIG_OVERFLOW1) __attribute((spontaneous)){
> >         high16 ++;
> >     }
> > -or-
> >     TOSH_INTERRUPT(SIG_OVERFLOW1) {
> >         high16 ++;
> >     }
> >
> > So I hardwired the macro invocation:
> >     void SIG_OVERFLOW1() __attribute__ ((interrupt, spontaneous, C))
{
> >         high16 ++;
> >     }
> >
> >
> > 3. To get the new TimerC to work correctly, you must wire:
> >   Main.StdControl -> TimerC.StdControl;
> > in your app.
> >
> > Note: all the "declaration of `time' shadows global declaration"
> > warnings still remain
> >
> > William
>
>
------------------------------------------------------------------------
-
> > William J. Maurer                              2170 Wedgewood Way
> > DSP Labs div WJM Inc.                          Livermore, California
94550
> > http://dsplabs.com                             (925) 606-8204
> > email [EMAIL PROTECTED]                       Telefax (925)
606-8205
> > ICQ#:17014999<http://wwp.mirabilis.com/17014999>
> > _______________________________________________
> > Tinyos-users mailing list
> > [EMAIL PROTECTED]
> > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
> >
>


_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to