Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/syssvc/serial.h
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/syssvc/serial.h
r321 r429 1 1 /* 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 5 4 * 6 5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory … … 48 47 #define TOPPERS_SERIAL_H 49 48 50 #include <kernel.h>51 52 49 #ifdef __cplusplus 53 50 extern "C" { 54 51 #endif 52 53 #include <kernel.h> 55 54 56 55 /* … … 62 61 } T_SERIAL_RPOR; 63 62 63 #ifdef TOPPERS_OMIT_TECS 64 /* 65 * シリアルインタフェースドライバの初期化ルーチン 66 */ 67 extern void serial_initialize(intptr_t exinf) throw(); 68 69 /* 70 * シリアルインタフェースドライバからの未送信文字の取出し 71 */ 72 extern bool_t serial_get_chr(ID portid, char *p_c) throw(); 73 #endif 74 64 75 /* 65 76 * シリアルインタフェースドライバのサービスコール … … 67 78 extern ER serial_opn_por(ID portid) throw(); 68 79 extern ER serial_cls_por(ID portid) throw(); 69 extern ER_UINT serial_ rea_dat(ID portid, char *buf, uint_t len) throw();80 extern ER_UINT serial_trea_dat(ID portid, char *buf, uint_t len, TMO tmout) throw(); 70 81 extern ER_UINT serial_wri_dat(ID portid, const char *buf, uint_t len) throw(); 71 82 extern ER serial_ctl_por(ID portid, uint_t ioctl) throw(); 72 83 extern ER serial_ref_por(ID portid, T_SERIAL_RPOR *pk_rpor) throw(); 84 85 Inline ER_UINT serial_rea_dat(ID portid, char *buf, uint_t len) 86 { 87 return serial_trea_dat(portid, buf, len, TMO_FEVR); 88 } 73 89 74 90 /*
Note:
See TracChangeset
for help on using the changeset viewer.