Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi,
Thanks rugbybloke for your point. But I want to stress out some more points on it. While registering interrupt in NIOS, we use alt_irq_register (), which requires IRQ nos., which are defined in system.h. But, the corresponding interrupt registration in ecos is done by using cyg_interrupt_create () & cyg_interrupt_attach (). cyg_interrupt_create () requires interrupt vector nos. (analogous to IRQ nos. in alt_irq_register, i think). For other architectures which support ecos, i have seen these vector nos. are defined in hal_intr.h (altera\kits\nios2\components\ecos\ecos-current\packages\hal\ARCHITECURE\arch\current\include), but didn't find in case of nios. And the other thing was that if we want to use the clock api of ecos, then the hardware timer has to be accessed. Then how can we compile such a code normally under ecos? Thanks & regards, Sanjay