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/syssvc/serial.h

    r321 r429  
    11/*
    2  *  TOPPERS/ASP Kernel
    3  *      Toyohashi Open Platform for Embedded Real-Time Systems/
    4  *      Advanced Standard Profile Kernel
     2 *  TOPPERS Software
     3 *      Toyohashi Open Platform for Embedded Real-Time Systems
    54 *
    65 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
     
    4847#define TOPPERS_SERIAL_H
    4948
    50 #include <kernel.h>
    51 
    5249#ifdef __cplusplus
    5350extern "C" {
    5451#endif
     52
     53#include <kernel.h>
    5554
    5655/*
     
    6261} T_SERIAL_RPOR;
    6362
     63#ifdef TOPPERS_OMIT_TECS
     64/*
     65 *  シリアルインタフェースドライバの初期化ルーチン
     66 */
     67extern void             serial_initialize(intptr_t exinf) throw();
     68
     69/*
     70 *  シリアルインタフェースドライバからの未送信文字の取出し
     71 */
     72extern bool_t   serial_get_chr(ID portid, char *p_c) throw();
     73#endif
     74
    6475/*
    6576 *  シリアルインタフェースドライバのサービスコール
     
    6778extern ER               serial_opn_por(ID portid) throw();
    6879extern ER               serial_cls_por(ID portid) throw();
    69 extern ER_UINT  serial_rea_dat(ID portid, char *buf, uint_t len) throw();
     80extern ER_UINT  serial_trea_dat(ID portid, char *buf, uint_t len, TMO tmout) throw();
    7081extern ER_UINT  serial_wri_dat(ID portid, const char *buf, uint_t len) throw();
    7182extern ER               serial_ctl_por(ID portid, uint_t ioctl) throw();
    7283extern ER               serial_ref_por(ID portid, T_SERIAL_RPOR *pk_rpor) throw();
     84
     85Inline ER_UINT  serial_rea_dat(ID portid, char *buf, uint_t len)
     86{
     87        return serial_trea_dat(portid, buf, len, TMO_FEVR);
     88}
    7389
    7490/*
Note: See TracChangeset for help on using the changeset viewer.