Thanks!

Hi,

 I've been Googling and can't find it -- can you give a link?

Here you go:
http://www.jbox.dk/sanos/source/lib/time.c.html

It needs a bit of patching to work with msp430, but not much. I also recall a
couple of lines were truncated, probably due to c->html conversion.
I provided local static buffers instead of the ones from the kernel, e.g.
replace:
 char *ascbuf = gettib()->ascbuf;
with
 static char ascbuf[xxx];

Locate *timer thingy in no-init memory. Increment it from 1-second interrupt.
I used "reserve" (?) keyword for main() to get memory for it. Make access to it
atomic since it is 32-bit (2 word) value,
e.g. dint(), get *timer, eint().
Fix your includes.
There might have been something else, I do not recall..

Sergei





-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


--
 ______________________________________
  Andrew E. Kalman, Ph.D.   [email protected]

Reply via email to