Ignore:
Timestamp:
Sep 21, 2018, 10:20:35 PM (3 years ago)
Author:
nicolas.van.phan@…
Message:

Add mtty driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_drivers.c

    r492 r534  
    2626
    2727#include <soclib_tty.h>
     28#include <soclib_mtty.h>
    2829#include <soclib_pic.h>
    2930#include <soclib_iob.h>
     
    4950                           uint32_t   impl )
    5051{
    51         assert( (impl == IMPL_TXT_TTY), "bad implementation" );
    52 
    53         soclib_tty_init( txt );
     52    switch (impl) {
     53    case IMPL_TXT_TTY : {
     54        soclib_tty_init( txt );
     55        break;
     56    }
     57    case IMPL_TXT_MTY : {
     58        soclib_mtty_init( txt );
     59        break;
     60    }
     61    default : {
     62        assert( false, "bad implementation" );
     63    }
     64    }
    5465}
    5566
Note: See TracChangeset for help on using the changeset viewer.