This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AdderII: Writing an ISR for the CPM timers


Hello
I am using an AdderII board (MPC852T) running eCos 2.0.
I would like to write an ISR that would be activated exactly every 100msec.
(I found that using the cyg_alarm had not been accurate enough for my
needs).
I can use the CPM timers for measuring a TimeStamps in a 48MHz accuracy.
I know that there is a possibility to initialize the CPM's timers for
generating CYGNUM_HAL_INTERRUPT_CPM_TIMER. (So I can run my ISR when a
100msec timer expires).
Had anyone managed to do so - on the AdderII?
How can I associate my ISR during initialization, without changing the code
of hal_arbitration_isr_cpm() etc. ?
I would appreciate a code section that enables all this.
Many thanks
	Tzahi Manistersky

=======================================
Tzahi Manistersky
mailto:tzahi@terasync.net
Software Engineer
TeraSync LTD. http://www.terasync.net/
Tel: +972(3)5360202 ext:1222
Fax: +972(3)5360202
13 Altalef St., Industrial Zone - Yehud
P.O.Box. 160, Yehud, 56000
Israel
=======================================



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]