gonzui


Format: Advanced Search

mtkernel_3/include/sys/machine.hbare sourcepermlink (0.00 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: /*
   15:  *      machine.h
   16:  *      Machine type definition 
   17:  */
   18: 
   19: #ifndef __SYS_MACHINE_H__
   20: #define __SYS_MACHINE_H__
   21: 
   22: /* ===== System dependencies definitions ================================ */
   23: #include <config.h>
   24: 
   25: #ifdef _IOTE_M367_
   26: #include "sysdepend/iote_m367/machine.h"
   27: 
   28: #define Csym(sym) sym
   29: 
   30: #endif
   31: 
   32: #ifdef _IOTE_STM32L4_
   33: #include "sysdepend/iote_stm32l4/machine.h"
   34: 
   35: #define Csym(sym) sym
   36: 
   37: #endif
   38: 
   39: #ifdef _IOTE_RX231_
   40: #include "sysdepend/iote_rx231/machine.h"
   41: 
   42: #define Csym(sym) _##sym
   43: 
   44: #endif
   45: 
   46: #ifdef _IOTE_RZA2M_
   47: #include "sysdepend/iote_rza2m/machine.h"
   48: 
   49: #define Csym(sym) sym
   50: 
   51: #endif
   52: 
   53: /* ===== C compiler dependencies definitions ============================= */
   54: 
   55: #ifdef __GNUC__
   56: 
   57: #define Inline static __inline__
   58: #define Asm __asm__ volatile
   59: #define Noinit(decl) decl __attribute__((section(".noinit")))
   60: #define Section(decl,name) decl __attribute__((section(#name)))
   61: #define WEAK_FUNC __attribute__((weak))
   62: 
   63: #define _VECTOR_ENTRY(name) .word name
   64: #define _WEAK_ENTRY(name) .weak name
   65: 
   66: #endif /* __GNUC__ */
   67: 
   68: #endif /* __SYS_MACHINE_H__ */