All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Schaffter" <cedric.schaffter@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] rt_intr_create issues
Date: Wed, 05 Nov 2008 14:05:06 +0100	[thread overview]
Message-ID: <49119A02.9020407@domain.hid> (raw)

Hi List!

I'm writing a programm where I need to use interruptions.

To create it, I use the function "rt_intr_create(RT_INTR *intr, const 
char *name, unsigned irq, rt_isr_t isr, rt_iack_t iack, int mode)".

I included this header : #include <native/intr.h>.

When I compile, I get these error messages :

*error 'RT_INTR_HANDLED' undeclared
error too many arguments to function 'rt_intr_create'.*

When I observe the file intr.h, I see there are two rt_intr_create (the 
one with six arguments which I need and an other one with only four).

I tried to specifiy four parameters as requested by the other 
*rt_intr_create* and it works, so I don't think there is a problem with 
my include paths.

Does someone already have these issues or can help me?

In this file there is an other instruction that I don't understand :
"#if (defined(__KERNEL__) || defined(__XENO_SIM__)) && !defined(DOXYGEN_CPP)


Best regards,
Cédric Schaffter


             reply	other threads:[~2008-11-05 13:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 13:05 Cédric Schaffter [this message]
2008-11-05 13:28 ` [Xenomai-help] rt_intr_create issues Sebastian Smolorz
2008-11-05 13:30 ` Gilles Chanteperdrix
2008-11-05 15:14   ` Cédric Schaffter

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=49119A02.9020407@domain.hid \
    --to=cedric.schaffter@domain.hid \
    --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.