- Timestamp:
- May 22, 2019, 4:09:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/asp3_dcre/target/gr_sakura_gcc/target_serial.h
r374 r387 4 4 * Advanced Standard Profile Kernel 5 5 * 6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 7 * Toyohashi Univ. of Technology, JAPAN 8 * Copyright (C) 2003-2004 by Naoki Saito 9 * Nagoya Municipal Industrial Research Institute, JAPAN 10 * Copyright (C) 2003-2004 by Platform Development Center 11 * RICOH COMPANY,LTD. JAPAN 12 * Copyright (C) 2008-2010 by Witz Corporation, JAPAN 13 * Copyright (C) 2013 by Mitsuhiro Matsuura 6 * Copyright (C) 2006-2018 by Embedded and Real-Time Systems Laboratory 7 * Graduate School of Information Science, Nagoya Univ., JAPAN 14 8 * 15 9 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 46 40 47 41 /* 48 * シリアル I/Oデバイス(SIO)ドライバ(GR-SAKURA用)42 * シリアルインタフェースドライバのターゲット依存部(GR-SAKURA用) 49 43 */ 50 44 … … 53 47 54 48 #include "gr_sakura.h" 55 #include "serial_api.h"49 #include <t_stddef.h> 56 50 57 #define SIO_RDY_SND 1 58 #define SIO_RDY_RCV 2 51 /* 52 * SIOポート数の定義 53 */ 54 //#define TNUM_SIOP 1 /* サポートするSIOポートの数 */ 55 56 /* 57 * SIO割込みを登録するための定義 58 */ 59 #define ISRPRI_SIO 1 /* SIOの割込みサービスルーチンのISR優先度 */ 59 60 60 61 #ifndef TOPPERS_MACRO_ONLY 61 62 62 typedef struct sio_port_control_block SIOPCB; 63 /* 64 * SIOポート管理ブロックの定義 65 */ 66 typedef struct sio_port_control_block SIOPCB; 67 68 /* 69 * コールバックルーチンの識別番号 70 */ 71 #define SIO_RDY_SND 1U /* 送信可能コールバック */ 72 #define SIO_RDY_RCV 2U /* 受信通知コールバック */ 63 73 64 74 /* … … 68 78 69 79 /* 70 * シリアルI/Oポートのオープン 80 * SIOドライバの終了処理 81 */ 82 extern void sio_terminate(intptr_t exinf); 83 84 /* 85 * SIOポートのオープン 71 86 */ 72 87 extern SIOPCB *sio_opn_por(ID siopid, intptr_t exinf); 73 88 74 89 /* 75 * シリアルI/Oポートのクローズ90 * SIOポートのクローズ 76 91 */ 77 92 extern void sio_cls_por(SIOPCB *p_siopcb); 78 93 79 94 /* 80 * シリアルI/Oポートへの文字送信 95 * SIOの割込みサービスルーチン 96 */ 97 extern bool_t sio_isr_snd(ID siopid); 98 99 /* 100 * SIOの割込みサービスルーチン 101 */ 102 extern bool_t sio_isr_rcv(ID siopid, char c); 103 104 /* 105 * SIOポートへの文字送信 81 106 */ 82 107 extern bool_t sio_snd_chr(SIOPCB *siopcb, char c); 83 108 84 109 /* 85 * シリアルI/Oポートからの文字受信110 * SIOポートからの文字受信 86 111 */ 87 112 extern int_t sio_rcv_chr(SIOPCB *siopcb); 88 113 89 114 /* 90 * シリアルI/Oポートからのコールバックの許可115 * SIOポートからのコールバックの許可 91 116 */ 92 117 extern void sio_ena_cbr(SIOPCB *siopcb, uint_t cbrtn); 93 118 94 119 /* 95 * シリアルI/Oポートからのコールバックの禁止120 * SIOポートからのコールバックの禁止 96 121 */ 97 122 extern void sio_dis_cbr(SIOPCB *siopcb, uint_t cbrtn); 98 123 99 124 /* 100 * シリアルI/Oポートからの送信可能コールバック125 * SIOポートからの送信可能コールバック 101 126 */ 102 127 extern void sio_irdy_snd(intptr_t exinf); 103 128 104 129 /* 105 * シリアルI/Oポートからの受信通知コールバック130 * SIOポートからの受信通知コールバック 106 131 */ 107 132 extern void sio_irdy_rcv(intptr_t exinf); 108 133 109 110 134 #endif /* TOPPERS_MACRO_ONLY */ 111 135 #endif /* TOPPERS_TARGET_SERIAL_H */
Note:
See TracChangeset
for help on using the changeset viewer.