gen68360 & termios

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Tue Nov 9 17:50:46 UTC 2004


sebastian ssmoller wrote:
> ok - so why do i get a compiler error when i do this
> 
> #define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
> rtems_driver_address_table Device_drivers[] = {
>     CONSOLE_DRIVER_TABLE_ENTRY,
>     TTY1_DRIVER_TABLE_ENTRY,
>     TTY2_DRIVER_TABLE_ENTRY,
>     CLOCK_DRIVER_TABLE_ENTRY,
>     {NULL, NULL, NULL, NULL, NULL, NULL}
> };  
> 
> to enable ttyS1 ?

If the gen68360 BSP supported more serial ports, they would likely
have been registered by  the console driver.  It only
registers a single serial port.  Often a single serial port/console
driver will register multiple serial ports if it can support them
all.

AFAIK there is only a single serial port supported so there are
no more device drivers in the gen68360.



> errors:
> 
> In file included from ../src/sys/kern/loader.c:13:
> ../src/sys/kern/system.h:80: `TTY1_DRIVER_TABLE_ENTRY' undeclared here
> (not in a function)../src/sys/kern/system.h:80: initializer element is
> not constant../src/sys/kern/system.h:80: (near initialization for
> `Device_drivers[1]')../src/sys/kern/system.h:81:
> `TTY2_DRIVER_TABLE_ENTRY' undeclared here (not in a
> function)../src/sys/kern/system.h:81: initializer element is not
> constant../src/sys/kern/system.h:81: (near initialization for
> `Device_drivers[2]')../src/sys/kern/system.h:82: initializer element is
> not constant../src/sys/kern/system.h:82: (near initialization for
> `Device_drivers[3]')../src/sys/kern/system.h:83: initializer element is
> not constant../src/sys/kern/system.h:83: (near initialization for
> `Device_drivers[4]') gmake: *** [../obj/m68k/GENERIC/sys/kern/loader.o]
> Error 1
> 
> i couldnt find TTY1_DRIVER_TABLE_ENTRY in gen68360 bsp anyway - is this
> handled differently there ?
> 
> i had a look at console/console.c but it doesnt gave me a hint on how to
> deal with ttyS[12] as known from pc386 bsp.
> 
> any ideas while a simple tcgetattr & tcsetattr (without changing
> anything ) causes my stdout to be broken ?
> 
> much thx for ur help,
> seb
> 
> 
> 
>>Sebastian,
>>
>>gen68360 BSP has full termios support. Have a look into 
>>"gen68360/console/console.c". The primary device is called 
>>"/dev/console".
>>
>>wkr,
>>Thomas.
>>
>>
>>>hi,
>>>is it correct that this bsp has no tty driver (e.g. like pc386) or
>>>did i
>>>miss something (havnt found any tty_drv.h or s.th. like that)
>>>
>>>is there any other possibility to access smc2/com2 ?
>>>(using open() without CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
>>>results in errors)
>>>
>>>does this bsp have full termios support? 
>>>anytime i try to change some settings i get bogus output
>>>code sample:
>>>
>>>tcgetattr(0, &std_in);
>>>
>>>std_in.c_cc[VMIN] = 1;
>>>std_in.c_cc[VTIME] = 0;
>>>std_in.c_lflag &= 
>>>    ~(ICANON | ECHO | ECHONL | ECHOK | ECHOE | ECHOPRT | ECHOCTL);
>>>
>>>tcsetattr(0, TCSANOW, &std_in);
>>>
>>>even if i does not change anything at all (just call tcgetattr and
>>>tcsetattr) this prob happens :(  
>>>any ideas ?
>>>
>>>THX
>>>regards,
>>>seb
>>
>>--------------------------------------------
>>IMD Ingenieurbuero fuer Microcomputertechnik
>>Thomas Doerfler           Herbststrasse 8
>>D-82178 Puchheim          Germany
>>email:    Thomas.Doerfler at imd-systems.de
>>PGP public key available at: http://www.imd-
>>systems.de/pgp_keys.htm
>>
> 
> 
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list