2008-11-10 10:24:18 BF533: Timer 0-1-2 are free?
Aldric Molina (SWITZERLAND)
Message: 64944
Hi everybody,
for an industrial project I need to use the three timer on the uclinux for blackfin. I want to know if they are available?
Best Regards
Aldric Molina
TranslateQuoteReplyEditDelete
2008-11-10 10:47:54 Re: BF533: Timer 0-1-2 are free?
Mike Frysinger (UNITED STATES)
Message: 64948
no peripheral is used unless you use it. so if you do not enable any driver that would use any gptimers, then they will all be free.
QuoteReplyEditDelete
2008-11-10 11:03:53 Re: BF533: Timer 0-1-2 are free?
Aldric Molina (SWITZERLAND)
Message: 64950
Ok, thanks for the fast answer.
Now I have a little problem, I have to start all the timer in the NMI handler in asm. I can configure the timer in asm but I don t know how to attach an handler to the timer's interrupt?
TranslateQuoteReplyEditDelete
2008-11-10 11:09:51 Re: BF533: Timer 0-1-2 are free?
Mike Frysinger (UNITED STATES)
Message: 64951
NMI is not supported:
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:nmi
to manage interrupts:
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:interrupts
QuoteReplyEditDelete
2008-11-10 11:19:13 Re: BF533: Timer 0-1-2 are free?
Aldric Molina (SWITZERLAND)
Message: 64952
I know but I have implement an NMI (this party is ok) and on it I have to start the timer. My question is: can I make module like the exemple on the linux-kernel:timers[timer_test.c] and start in asm the timer?
TranslateQuoteReplyEditDelete
2008-11-10 11:28:32 Re: BF533: Timer 0-1-2 are free?
Mike Frysinger (UNITED STATES)
Message: 64953
calling things from asm is simple. calling things from NMI is not, nor is any of it supported. you'd have to audit the whole code path.
QuoteReplyEditDelete
2008-11-10 11:39:52 Re: BF533: Timer 0-1-2 are free?
Aldric Molina (SWITZERLAND)
Message: 64955
Fine, thanks for your answer Mike.