From: "Igor B. Poretsky" <poretsky@mlbox.ru>
To: ecos-discuss@ecos.sourceware.org
Cc: ecos-devel@ecos.sourceware.org
Subject: AT91SAM7SE IRQ vectors
Date: Sun, 14 Mar 2010 20:39:00 -0000 [thread overview]
Message-ID: <87ljduk58m.fsf@home-desktop.localdomain> (raw)
Hello!
I am using Ecos v3.0 on AT91SAM7SE architecture in one of my project
and recently I've stumbled on the problem of catching interrupts from
IRQ0 external line. After some datasheets exploration I've realized
that AT91SAM7SE for some reason uses not the same vectors for the IRQ0
and IRQ1 than AT91SAM7S, but it is not reflected in Ecos.
So, I suggest a little patch to resolve the problem:
diff -Nudr packages.orig/hal/arm/at91/at91sam7s/v3_0/include/hal_platform_ints.h packages/hal/arm/at91/at91sam7s/v3_0/include/hal_platform_ints.h
--- packages.orig/hal/arm/at91/at91sam7s/v3_0/include/hal_platform_ints.h 2009-01-29 20:48:56.000000000 +0300
+++ packages/hal/arm/at91/at91sam7s/v3_0/include/hal_platform_ints.h 2010-03-12 13:19:33.000000000 +0300
@@ -97,8 +97,13 @@
#define CYGNUM_HAL_INTERRUPT_ADC 17
#endif
+#ifdef CYGHWR_HAL_ARM_AT91SAM7SE
+#define CYGNUM_HAL_INTERRUPT_IRQ0 29
+#define CYGNUM_HAL_INTERRUPT_IRQ1 30
+#else
#define CYGNUM_HAL_INTERRUPT_IRQ0 30
#define CYGNUM_HAL_INTERRUPT_IRQ1 31
+#endif
// Interrupts which are multiplexed on to the System Interrupt
#define CYGNUM_HAL_INTERRUPT_PITC 32
Best regards,
Igor.
reply other threads:[~2010-03-14 20:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ljduk58m.fsf@home-desktop.localdomain \
--to=poretsky@mlbox.ru \
--cc=ecos-devel@ecos.sourceware.org \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).