RT serial port (rt_dev_write()) question
Hi,
Is there any reason you shouldn't rt_task_shadow() the main thread?
Regards,
Sam
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dehann Fourie
Sent: 16 February 2010 09:24 PM
To: Jan Kiszka
Cc: [email protected]
Subject: Re: [Xenomai-help] RT serial port (rt_dev_write()) question
Thanks, explains alot.
Regards,
Dehann
Quoted 18 lines · Jan Kiszka
Quoted 4 lines · Dehann Fourie
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_shadowif use the native skin).Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
Signature · 6 lines
Dehann Fourie _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
Quoted 3 lines · Sam Claassens
Hi,
Is there any reason you shouldn't
rt_task_shadow()the main thread?
I do not think there are. Some other skins even do it automatically.
Signature · 1 line
Gilles.
Thanks!
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: 20 February 2010 12:47 PM
To: Sam Claassens
Cc: [email protected]
Subject: Re: [Xenomai-help] FW: RT serial port (rt_dev_write()) question
Quoted 3 lines · Sam Claassens
Hi,
Is there any reason you shouldn't
rt_task_shadow()the main thread?
I do not think there are. Some other skins even do it automatically.
Signature · 1 line
Gilles.