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




Reply via email to