pc386 console input

angelo angelo at hunterlink.net.au
Wed Oct 11 00:07:09 UTC 2000


I worked it out. It appears that I also have to have
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER

Works fine now.

angelo wrote:

> I am unable to get my application to read the console input for a PC386
> build.
> Everything links OK and the first printf happens fine, but the
> application will note respond to the keyboard.
>
> eg.
> /*
>  *  Simple test program -- simplified version of sample test hello.
>  */
>
> #define TEST_INIT
>
> #include <bsp.h>
>
> #include <stdio.h>
>
> rtems_task Init(
>   rtems_task_argument ignored
> )
> {
>   char x;
>   do
>     {
>
>       printf("press x to exit >");
>       scanf ("%c", &x);
>       printf ("%c", x);
>     }while (x != 'x' && x!= 'X');
>
>   printf ("Hello World");
>   exit( 0 );
> }
>
> /* configuration information */
>
> #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
>
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>
> #define CONFIGURE_INIT
>
> #define CONFIGURE_MAXIMUM_TASKS 1
> #include <confdefs.h>
>
> /* I added these as they were in the termios example */
> #include <termios.h>
> #include <unistd.h>
> /* end of file */
>
> all I get is the press x to exit>
>
> --
> Angelo Fraietta
>
> PO Box 859
> Hamilton NSW 2303
>
> Home Page
>
> http://users.hunterlink.net.au/~maaaf/
>
> There are those who seek knowledge for the sake of knowledge - that is
> CURIOSITY
> There are those who seek knowledge to be known by others - that is
> VANITY
> There are those who seek knowledge in order to serve - that is LOVE
>     Bernard of Clairvaux (1090 - 1153)

--
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page

http://users.hunterlink.net.au/~maaaf/

There are those who seek knowledge for the sake of knowledge - that is
CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)







More information about the users mailing list