* [Xenomai-help] RT serial port (rt_dev_write()) question
@ 2010-02-16 18:33 Dehann Fourie
2010-02-16 19:03 ` Jan Kiszka
0 siblings, 1 reply; 3+ messages in thread
From: Dehann Fourie @ 2010-02-16 18:33 UTC (permalink / raw)
To: xenomai
Hi,
Quick question. Can you write to a rt device (say "rtser0") from the
main thread, ie not in a rt_task?
Thanks in advance.
Regards,
--
Dehann Fourie
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] RT serial port (rt_dev_write()) question
2010-02-16 18:33 [Xenomai-help] RT serial port (rt_dev_write()) question Dehann Fourie
@ 2010-02-16 19:03 ` Jan Kiszka
2010-02-16 19:23 ` Dehann Fourie
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2010-02-16 19:03 UTC (permalink / raw)
To: Dehann Fourie; +Cc: xenomai
Dehann Fourie wrote:
> Hi,
>
> Quick question. Can you write to a rt device (say "rtser0") from the
> main thread, ie not in a rt_task?
Short answer: Nope.
Longer version: You must call this service over a Linux task that was
shadowed for use with Xenomai. That can also be the main thread of some
application, though (check rt_task_shadow if use the native skin).
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] RT serial port (rt_dev_write()) question
2010-02-16 19:03 ` Jan Kiszka
@ 2010-02-16 19:23 ` Dehann Fourie
0 siblings, 0 replies; 3+ messages in thread
From: Dehann Fourie @ 2010-02-16 19:23 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai
Thanks, explains alot.
Regards,
Dehann
On Tue, Feb 16, 2010 at 9:03 PM, Jan Kiszka <jan.kiszka@domain.hid> wrote:
> Dehann Fourie wrote:
>> Hi,
>>
>> Quick question. Can you write to a rt device (say "rtser0") from the
>> main thread, ie not in a rt_task?
>
> Short answer: Nope.
>
> Longer version: You must call this service over a Linux task that was
> shadowed for use with Xenomai. That can also be the main thread of some
> application, though (check rt_task_shadow if use the native skin).
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT T DE IT 1
> Corporate Competence Center Embedded Linux
>
--
Dehann Fourie
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-16 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 18:33 [Xenomai-help] RT serial port (rt_dev_write()) question Dehann Fourie
2010-02-16 19:03 ` Jan Kiszka
2010-02-16 19:23 ` Dehann Fourie
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.