Garrett D'Amore
2006-09-12 22:21:44 UTC
I wrote the following patch which converts newsmips to tc.
In this change:
1) only NWS-5000 has a high resolution timer
2) the timer NEWS5000_FREERUN is assumed to tick once per usec. That
seems what the current code.
3) I assume it wraps on a 32-bit boundary (i.e counts 0-ffffffff)
If these assumptions are good, then the code should run. I don't have
news docs, so I'm just interpreting the pre-existing code. I'd
appreciate it if folks can test, and commit as appropriate.
-- Garrett
In this change:
1) only NWS-5000 has a high resolution timer
2) the timer NEWS5000_FREERUN is assumed to tick once per usec. That
seems what the current code.
3) I assume it wraps on a 32-bit boundary (i.e counts 0-ffffffff)
If these assumptions are good, then the code should run. I don't have
news docs, so I'm just interpreting the pre-existing code. I'd
appreciate it if folks can test, and commit as appropriate.
-- Garrett
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191