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/sil.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-2011 by Embedded and Real-Time Systems Laboratory
     7 *  Copyright (C) 2004-2018 by Embedded and Real-Time Systems Laboratory
    88 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    99 *
     
    276276#endif /* TOPPERS_OMIT_SIL_ACCESS */
    277277
     278#ifndef TOPPERS_OMIT_SIL_SYNC_WRITE
     279
     280/*
     281 *  8ビット単位の同期書込み
     282 */
     283#ifdef UINT8_MAX
     284
     285Inline void
     286sil_swrb_mem(uint8_t *mem, uint8_t data)
     287{
     288        sil_wrb_mem(mem, data);
     289        TOPPERS_SIL_WRITE_SYNC();
     290}
     291
     292#endif /* UINT8_MAX */
     293
     294/*
     295 *  16ビット単位の同期書込み
     296 */
     297
     298Inline void
     299sil_swrh_mem(uint16_t *mem, uint16_t data)
     300{
     301        sil_wrh_mem(mem, data);
     302        TOPPERS_SIL_WRITE_SYNC();
     303}
     304
     305Inline void
     306sil_swrh_lem(uint16_t *mem, uint16_t data)
     307{
     308        sil_wrh_lem(mem, data);
     309        TOPPERS_SIL_WRITE_SYNC();
     310}
     311
     312Inline void
     313sil_swrh_bem(uint16_t *mem, uint16_t data)
     314{
     315        sil_wrh_bem(mem, data);
     316        TOPPERS_SIL_WRITE_SYNC();
     317}
     318
     319/*
     320 *  32ビット単位の同期書込み
     321 */
     322
     323Inline void
     324sil_swrw_mem(uint32_t *mem, uint32_t data)
     325{
     326        sil_wrw_mem(mem, data);
     327        TOPPERS_SIL_WRITE_SYNC();
     328}
     329
     330Inline void
     331sil_swrw_lem(uint32_t *mem, uint32_t data)
     332{
     333        sil_wrw_lem(mem, data);
     334        TOPPERS_SIL_WRITE_SYNC();
     335}
     336
     337Inline void
     338sil_swrw_bem(uint32_t *mem, uint32_t data)
     339{
     340        sil_wrw_bem(mem, data);
     341        TOPPERS_SIL_WRITE_SYNC();
     342}
     343
     344#endif /* TOPPERS_OMIT_SIL_SYNC_WRITE */
     345
    278346#endif /* TOPPERS_MACRO_ONLY */
    279347
Note: See TracChangeset for help on using the changeset viewer.