ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: TS-7300 Interrupt handling help

To:
Subject: Re: [ts-7000] Re: TS-7300 Interrupt handling help
From: David Hawkins <>
Date: Wed, 14 May 2008 11:04:35 -0700
Hi Brandon,

> Thanks, that really helps.  So let me make sure I got this
> right.  I am going to need to make a driver that will handle
> the particular interrupt for the timer?  

Maybe :)

If you just want a generic timer, you can use operating
system provided timers. They have their shortcomings,
eg. accuracy only to about 1 OS tick. However, that may
work for you.

If you want to mess with a piece of the processor hardware
that the OS is not using, eg. an unused timer channel, then
yeah, you'll need to add a driver that allows you to program
the timer. Chances are someone has already written one, so
its worth looking around and asking questions.

You'll want to be careful if you touch registers that might
be in-use by the OS. For example, if there is a common timer
control register, then you'll want to make access to that
register atomic (eg. using spinlocks that disable interrupts).

> That seems a little more complicated that what I was
> expecting, but it will be fine because I wanted to get
> into writing some basic drivers.  I just began reading that
> book you mentioned, although it is the third edition and
> covers kernel 2.6; my library doesn't have the second
> edition. 

The 2nd Edition is available online for free, Google should find it.

> I will give writing the ISR a shot when I am ready.  Thanks
> for the links, too.  I found that first one a few weeks ago
> and it has been really helpful with setting up a crosscompiler.  

Have fun! Just ask for help if you get stuck.

Cheers,
Dave

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<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