interrupt handle?
Thomas Doerfler
Thomas.Doerfler at imd-systems.de
Thu Apr 12 12:41:12 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have no idea about the ARM architecture you are using, but as far as I
could see in the sources, the edb7312 BSP uses the "new exception
handling" scheme, which is different to the API you are trying to use.
Have a look at:
c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
There you can get the idea on how a interrupt handler is added to the
system (search for the data structure clock_isr_data). The call
"rtems_interrupt_catch" will not work here.
And yes, the interrupt number "20" should be fine, but I recommend using
the "name" BSP_URXINT2.
wkr,
Thomas.
kang yunho schrieb:
> This is my first message to this list.
>
> I am a begginer user of RTEMS and I have to program a EP7312
>
> The program works O.K. except that I can`t execute muy own interrupt
> routine
>
> I am using the "rtems_interrupt_catch" routine to assign my routine to
> the
> interrupt vector. The IRQ of the URXINT2 20
>
> Does anybody tell me if I have to do something else or I have to change
> any
> configuration parameter?
>
> The vector number to the rtems_interrupt_catch is my IRQ= 20?
>
> Here is ep7312 irq.h, if you can look at it and tell me if there is
> something
> wrong,
> I will be gratefull for you for ever.
>
> #define VECTOR_TABLE 0x40
>
> #ifndef __asm__
>
> /*
> * Include some preprocessor value also used by assember code
> */
>
> #include <rtems.h>
>
> extern void default_int_handler();
> /*-------------------------------------------------------------------------+
>
>
> | Constants
> +--------------------------------------------------------------------------*/
>
>
>
> /* enum of the possible interrupt sources */
> typedef unsigned int rtems_irq_number;
> /* int interrupt status/mask register 1 */
> #define BSP_EXTFIQ 0
> #define BSP_BLINT 1
> #define BSP_WEINT 2
> #define BSP_MCINT 3
> #define BSP_CSINT 4
> #define BSP_EINT1 5
> #define BSP_EINT2 6
> #define BSP_EINT3 7
> #define BSP_TC1OI 8
> #define BSP_TC2OI 9
> #define BSP_RTCMI 10
> #define BSP_TINT 11
> #define BSP_UTXINT1 12
> #define BSP_URXINT1 13
> #define BSP_UMSINT 14
> #define BSP_SSEOTI 15
> /* int interrupt status/mask register 2 */
> #define BSP_KBDINT 16
> #define BSP_SS2RX 17
> #define BSP_SS2TX 18
> #define BSP_UTXINT2 19
> #define BSP_URXINT2 20
> /* int interrupt status/mask register 3 */
> #define BSP_DAIINT 21
> #define BSP_MAX_INT 22
>
> _________________________________________________________________
> 편리한 웹하드가 최대 1G 까지 무료!
> http://im.msn.co.kr/new/function/function_02_11.asp
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
- --
- --------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: Thomas.Doerfler at imd-systems.de
PGP public key available at:
http://www.imd-systems.de/pgpkey_en.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGHijowHyg4bDtfjQRAm1fAJ420RkYE82Fp4fp4d9/2acbV7UsaACdFbKA
mF9NQQ+zivdUpYI+L3GKp/Q=
=vCiQ
-----END PGP SIGNATURE-----
More information about the users
mailing list