All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_intr_create issues
@ 2008-11-05 13:05 Cédric Schaffter
  2008-11-05 13:28 ` Sebastian Smolorz
  2008-11-05 13:30 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 4+ messages in thread
From: Cédric Schaffter @ 2008-11-05 13:05 UTC (permalink / raw)
  To: xenomai

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] rt_intr_create issues
  2008-11-05 13:05 [Xenomai-help] rt_intr_create issues Cédric Schaffter
@ 2008-11-05 13:28 ` Sebastian Smolorz
  2008-11-05 13:30 ` Gilles Chanteperdrix
  1 sibling, 0 replies; 4+ messages in thread
From: Sebastian Smolorz @ 2008-11-05 13:28 UTC (permalink / raw)
  To: Cédric Schaffter, xenomai-help

Cédric Schaffter wrote:
> 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).

The one with six parameters is for kernel apps, the other one with four
parameters for userland which is probably the right one for you. Please see
http://www.xenomai.org/documentation/branches/v2.4.x/html/api/group__interrupt.html

-- 
Sebastian



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] rt_intr_create issues
  2008-11-05 13:05 [Xenomai-help] rt_intr_create issues Cédric Schaffter
  2008-11-05 13:28 ` Sebastian Smolorz
@ 2008-11-05 13:30 ` Gilles Chanteperdrix
  2008-11-05 15:14   ` Cédric Schaffter
  1 sibling, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2008-11-05 13:30 UTC (permalink / raw)
  To: Cédric Schaffter; +Cc: xenomai

Cédric Schaffter wrote:
> 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)

__KERNEL__ is defined when compiling a kernel-space module;
__XENO_SIM__ is defined when compiling for xenomai simulator (which is
probably not your case);
DOXYGEN_CPP is defined when generating Xenomai documentation with doxygen.

-- 
                                                 Gilles.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] rt_intr_create issues
  2008-11-05 13:30 ` Gilles Chanteperdrix
@ 2008-11-05 15:14   ` Cédric Schaffter
  0 siblings, 0 replies; 4+ messages in thread
From: Cédric Schaffter @ 2008-11-05 15:14 UTC (permalink / raw)
  To: xenomai@xenomai.org

Gilles Chanteperdrix a écrit :
> Cédric Schaffter wrote:
>   
>> 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)
>>     
>
> __KERNEL__ is defined when compiling a kernel-space module;
> __XENO_SIM__ is defined when compiling for xenomai simulator (which is
> probably not your case);
> DOXYGEN_CPP is defined when generating Xenomai documentation with doxygen.
>
>   

Thanks Gilles and Sebastian !

Now it's clear.

Best regards,
Cédric



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-05 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05 13:05 [Xenomai-help] rt_intr_create issues Cédric Schaffter
2008-11-05 13:28 ` Sebastian Smolorz
2008-11-05 13:30 ` Gilles Chanteperdrix
2008-11-05 15:14   ` Cédric Schaffter

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.