gonzui


Format: Advanced Search

mtkernel_3/include/sys/sysdepend/cpu/core/rxv2/sysdef.hbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    micro T-Kernel 3.00.01
    4:  *
    5:  *    Copyright (C) 2006-2020 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 2020/05/29.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: /*
   15:  *      sysdef_depend.h
   16:  *
   17:  *      System dependencies definition (RXv2 core depended)
   18:  *      Included also from assembler program.
   19:  */
   20: 
   21: #ifndef __SYS_SYSDEF_DEPEND_CORE_H__
   22: #define __SYS_SYSDEF_DEPEND_CORE_H__
   23: 
   24: /* ------------------------------------------------------------------------ */
   25: /*
   26:  * PSW : Processor Status Word
   27:  */
   28: #define PSW_I           (0x000010000)    /* bit-16: Interrupt enable bit */
   29: #define PSW_IPL         (0x00F000000)  /* bit 24~27: IPL(Interrupt priority level) */
   30: 
   31: /* ------------------------------------------------------------------------ */
   32: /*
   33:  * FPSW : Floating point Status Word
   34:  */
   35: #define FPSW_VAL        (0x00000100)   /* FPSW initial value */
   36: 
   37: /* ------------------------------------------------------------------------ */
   38: /*
   39:  * SYSTEM module registers
   40:  */
   41: 
   42: /* Clock generation registers */
   43: #define SYSTEM_SCKCR    (0x00080020)
   44: #define SYSTEM_SCKCR3   (0x00080026)
   45: #define SYSTEM_PLLCR    (0x00080028)
   46: #define SYSTEM_PLLCR2   (0x0008002A)
   47: #define SYSTEM_UPLLCR   (0x0008002C)
   48: #define SYSTEM_UPLLCR2  (0x0008002E)
   49: #define SYSTEM_BCKCR    (0x00080030)
   50: #define SYSTEM_MEMWAIT  (0x00080031)
   51: #define SYSTEM_MOSCCR   (0x00080032)
   52: #define SYSTEM_SOSCCR   (0x00080033)
   53: #define SYSTEM_LOCOCR   (0x00080034)
   54: #define SYSTEM_ILOCOCR  (0x00080035)
   55: #define SYSTEM_HOCOCR   (0x00080036)
   56: #define SYSTEM_HOCOCR2  (0x00080037)
   57: #define SYSTEM_OSCOVFSR (0x0008003C)
   58: 
   59: #define SYSTEM_OPCCR    (0x000800A0)
   60: #define SYSTEM_RSTCKCR  (0x000800A1)
   61: #define SYSTEM_MOSCWTCR (0x000800A2)
   62: 
   63: /* Register write protection register */
   64: #define SYSTEM_PRCR     (0x000803FE)
   65: 
   66: /* ------------------------------------------------------------------------ */
   67: /*
   68:  * Definition of minimum system stack size
   69:  *      Minimum system stack size when setting the system stack size
   70:  *      per task by 'tk_cre_tsk().'
   71:  *  this size must be larger than the size of SStackFrame
   72:  */
   73: #define MIN_SYS_STACK_SIZE      128
   74: 
   75: /*
   76:  * Default task system stack 
   77:  */
   78: #define DEFAULT_SYS_STKSZ       MIN_SYS_STACK_SIZE
   79: 
   80: 
   81: #endif /* __SYS_SYSDEF_DEPEND_CORE_H__ */