Ignore:
Timestamp:
Jul 3, 2020, 7:19:17 PM (4 years ago)
Author:
coas-nagasima
Message:

ASP3, TINET, mbed を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/include/t_stddef.h

    r321 r429  
    55 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    66 *                              Toyohashi Univ. of Technology, JAPAN
    7  *  Copyright (C) 2004-2015 by Embedded and Real-Time Systems Laboratory
     7 *  Copyright (C) 2004-2019 by Embedded and Real-Time Systems Laboratory
    88 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    99 *
     
    113113#endif /* UINT64_MAX */
    114114typedef uint32_t                PRCTIM;         /* プロセッサ時間[NGKI0573]*/
     115#ifndef USE_64BIT_HRTCNT
    115116typedef uint32_t                HRTCNT;         /* 高分解能タイマのカウント値 */
     117#else /* USE_64BIT_HRTCNT */
     118#ifndef UINT64_MAX
     119#error 64bit data types are required when USE_64BIT_HRTCNT.
     120#endif
     121typedef uint64_t                HRTCNT;         /* 高分解能タイマのカウント値 */
     122#endif /* USE_64BIT_HRTCNT */
    116123
    117124typedef TOPPERS_fp              FP;                     /* プログラムの起動番地 */
     
    214221 */
    215222#ifndef offsetof
    216 #define offsetof(structure, field)      ((uintptr_t) &(((structure *) 0)->field))
     223#define offsetof(structure, field) \
     224                ((uintptr_t)(((char *) &(((structure *) 0)->field)) - ((char *) 0)))
    217225#endif /* offsetof */
    218226
Note: See TracChangeset for help on using the changeset viewer.