gonzui


Format: Advanced Search

tkernel_2/monitor/hwdepend/tef_em1d/src/misc.cbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: /*
   16:  *      misc.c
   17:  *
   18:  */
   19: 
   20: #include "sysdepend.h"
   21: 
   22: /*
   23:  * obtain switch status
   24:  */
   25: EXPORT UW getDipSw( void )
   26: {
   27:         return DipSw;
   28: }
   29: 
   30: /*
   31:  * Obtain boot selection information
   32:  */
   33: EXPORT W bootSelect( void )
   34: {
   35:         if ( (DipSw & (SW_MON|SW_ABT)) != 0 ) return BS_MONITOR;
   36: 
   37:         return BS_AUTO;
   38: }
   39: 
   40: /*
   41:  * obtain the console port number
   42:  */
   43: EXPORT W getConPort( void )
   44: {
   45:         return 0;
   46: }