gonzui


Format: Advanced Search

mtkernel_3/kernel/sysdepend/iote_rza2m/devinit.cbare sourcepermlink (0.02 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    micro T-Kernel 3.00.05
    4:  *
    5:  *    Copyright (C) 2006-2021 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.2.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2021/11.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: #include <sys/machine.h>
   15: #ifdef IOTE_RZA2M
   16: 
   17: /*
   18:  *      devinit.c (RZ/A2M IoT-Engine)
   19:  *      Device-Dependent Initialization
   20:  */
   21: 
   22: #include <sys/sysdef.h>
   23: #include <tm/tmonitor.h>
   24: #include <tk/device.h>
   25: 
   26: #include "kernel.h"
   27: #include "sysdepend.h"
   28: 
   29: /* ------------------------------------------------------------------------ */
   30: 
   31: /*
   32:  * Initialization before micro T-Kernel starts
   33:  */
   34: 
   35: EXPORT ER knl_init_device( void )
   36: {
   37:         return E_OK;
   38: }
   39: 
   40: /* ------------------------------------------------------------------------ */
   41: /*
   42:  * Start processing after T-Kernel starts
   43:  *      Called from the initial task contexts.
   44:  */
   45: EXPORT ER knl_start_device( void )
   46: {
   47:         ER     err;
   48:         
   49: #if USE_SDEV_DRV
   50: 
   51:         /* Serial ch.4 "sere" */
   52:         #if DEVCNF_USE_SER
   53:                 err = dev_init_ser(4);
   54:                 if(err < E_OK) return err;
   55:         #endif
   56: 
   57: #endif
   58:         return E_OK;
   59: }
   60: 
   61: #if USE_SHUTDOWN
   62: /* ------------------------------------------------------------------------ */
   63: /*
   64:  * System finalization
   65:  *      Called just before system shutdown.
   66:  *      Execute finalization that must be done before system shutdown.
   67:  */
   68: EXPORT ER knl_finish_device( void )
   69: {
   70:         return E_OK;
   71: }
   72: 
   73: #endif /* USE_SHUTDOWN */
   74: 
   75: #endif /* IOTE_RZA2M */