Ignore:
Timestamp:
May 4, 1998, 12:40:21 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
161e1b3f
Parents:
f35abd4
Message:

Switched to termios callback structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/dmv152/console/console.c

    rf35abd4 r55951bc  
    190190)
    191191{
    192         rtems_status_code sc;
    193 
    194         assert( minor <= 1 );
    195         if ( minor > 2 )
    196           return RTEMS_INVALID_NUMBER;
    197  
    198         sc = rtems_termios_open (major, minor, arg,
    199                         NULL,
    200                         NULL,
    201                         console_inbyte_nonblocking,
    202                         console_write_support,
    203                         0);
     192  rtems_status_code sc;
     193  static const rtems_termios_callbacks pollCallbacks = {
     194    NULL,                        /* firstOpen */
     195    NULL,                        /* lastClose */
     196    console_inbyte_nonblocking,  /* pollRead */
     197    console_write_support,       /* write */
     198    NULL,                        /* setAttributes */
     199    NULL,                        /* stopRemoteTx */
     200    NULL,                        /* startRemoteTx */
     201    0                            /* outputUsesInterrupts */
     202  };
     203
     204  assert( minor <= 1 );
     205  if ( minor > 2 )
     206    return RTEMS_INVALID_NUMBER;
     207
     208  sc = rtems_termios_open (major, minor, arg, &pollCallbacks );
    204209
    205210  return RTEMS_SUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.