All of lore.kernel.org
 help / color / mirror / Atom feed
From: 嵌入式工程师 <ericvic@163.com>
To: xenomai@xenomai.org
Subject: [Xenomai] Set  gpio irq priority with tzic_set_irq_prio(int irq, int hi)
Date: Sat, 8 Jun 2013 23:40:54 +0800 (CST)	[thread overview]
Message-ID: <44b485fd.1ee68.13f24728cbf.Coremail.ericvic@163.com> (raw)

Now I use Imx53 gpio2-14 to be a interrupt source ,but I found its priority so lower . 
So I use tzic_set_irq_prio(int irq, int hi) 
.................................
.............................




 MY_GPIO2_14=(1*32+14)+128;
 irq=irq_ to_gpio( MY_GPIO2_14);
 mxc_tzic_init_irq(IMX53_TZIC_BASE_ADDR);
 tzic_set_irq_prio(irq,20);//chang the priority to #30
.................................
......................................


Is it right?


             reply	other threads:[~2013-06-08 15:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-08 15:40 嵌入式工程师 [this message]
2013-06-08 17:25 ` [Xenomai] Set gpio irq priority with tzic_set_irq_prio(int irq, int hi) Gilles Chanteperdrix
2013-06-09  2:28   ` 嵌入式工程师
2013-06-09  7:15     ` Gilles Chanteperdrix
2013-06-09  7:16     ` Gilles Chanteperdrix

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=44b485fd.1ee68.13f24728cbf.Coremail.ericvic@163.com \
    --to=ericvic@163.com \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.