Comments/experiences sought on RTEMS4.6.0pre2 with MPC860
Erwin Rol
erwin at muffin.org
Tue Apr 29 22:23:36 UTC 2003
On Wed, 2003-04-30 at 00:02, Chris Johns wrote:
> Erwin Rol wrote:
> What I do is a simple little bit of termios code somewhere in or close to 'main':
>
> /*
> * Make the stdin stream baud rate what we expect as a default.
> */
>
> if (tcgetattr (STDIN_FILENO, &term) < 0)
> {
> printf ("rtems-target-init: cannot get terminal attributes.\n");
> }
> else
> {
> /*
> * No echo, no canonical processing.
> */
>
> term.c_cflag &= ~(CSIZE | CBAUD);
> term.c_cflag |= CS8 | B19200;
>
> if (tcsetattr (STDIN_FILENO, TCSANOW, &term) < 0)
> printf ("rtems-target-init: cannot set terminal attributes\n");
> }
>
Yes but this code is not used in the examples :-) and hence it took me a
while to figure out why the didn't print anything while the debugger
said they where running fine :-)
- Erwin
--
Dipl.-Ing. Erwin Rol - Software Engineering
tel: +49-(0)8024-479377 gsm: +49-(0)171-6929198 fax: +49-(0)8024-479379
email: erwin at muffin.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.rtems.org/pipermail/users/attachments/20030430/f46903ec/attachment-0001.bin>
More information about the users
mailing list