how to call Qt main from rtems

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 9 09:03:21 UTC 2015


Hello Chan,

On 09/01/15 03:03, Chan Kim wrote:
> Hi,
>
> I sent an email to this reflector but it's not coming to me so send another mail partly as a test.
> Can anyone tell me how rtems_shell_wait_for_input function in rtems-4.10.99-src/cpukit/libmisc/shell/shell-wait-for-input.c waits each second?
> The read function waits my key and responds to my key stroke right away but after 1 second returns (by timer I guess).
> but I can't understand how it works..

this is a Termios feature, see also

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap11.html#tag_11

>
> I have another question. Is there a well know method of calling Qt main from rtems?
> I saw a method which calls fake main at the end of rtems initialization when building rtems (but the fake main.o is not included in the rtems library) and later Qt main is built using that rtems library(not the real main of Qt is called by rtems initialization). This seems to be the only way but is there any another way?
>

You should call the Qt main in the thread responsible for the Qt event 
processing.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list