ts-7000
[Top] [All Lists]

[ts-7000] Re: Scheduled activity on a TS-7800

To:
Subject: [ts-7000] Re: Scheduled activity on a TS-7800
From: "Anouk Ahamitet" <>
Date: Fri, 20 Jun 2008 14:02:01 -0000

--- In Alexander Clouter <> wrote:

> Well the Mavell SoC has two free timers already on board, "Timer 0 is used as
> free-running clocksource, while timer 1 is used as clock_event_device.";
> lurks in arch/arm/plat-orion/time.c. It seems to have a nanosecond
> resolution[1] as TCLK is 166Mhz...
>
> This is all in addition to the microsecond timer TS seem to supply, this of
> course assumes I know what I'm talking about but thats my reading of the
> thing.

We looked at the Marvell PDF documents from the TS-7800 page, and compared them to the source in ts7800ctl.c.  We obviously are missing at least one key component to understanding because we weren't able to find anything in the sample source that seemed to match the documentation, except the string "TWSI" that appears in a few places.  But, even it the source is accessing the Marvell, and we could figure out how to use set the timers to generate an interrupt that we could catch, it looks like the example functions for start/stop/read/write are WAY to 'sloppy' (in time) for use in setting a sub-millisecond timer, since they ignorantly use usleep(1) and usleep(100) all over the place when we all know that those may take as long as usleep(10000) (and any after the first almost certainly will take that long).

But, we still might be able to use one of them to, say, provide an interrupt every millisecond to wake our app, assuming we don't need to reprogram them every time (i.e. in auto-reset mode they might be used for a short period timer).

Unfortunately, this is going well beyond our personal experience levels.  Neither of the programmers here is either a linux kernel hacker or an ARM CPU expert.  We can beat the crap out of DOS on an x86 and sometimes make Windows cry, but on linux we're humble programmers wishing the system services (i . e. usleep() and nanosleep()) worked as documented.  If they did, we would have finished our project at least two weeks ago.

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU