Ignore:
Timestamp:
May 22, 2019, 4:09:18 PM (5 years ago)
Author:
coas-nagasima
Message:

ファイルディスクリプタ処理を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/asp3_dcre/target/gr_sakura_gcc/target_serial.h

    r374 r387  
    44 *      Advanced Standard Profile Kernel
    55 *
    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
    148 *
    159 *  上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ
     
    4640
    4741/*
    48  *              シリアルI/Oデバイス(SIO)ドライバ(GR-SAKURA用)
     42 *              シリアルインタフェースドライバのターゲット依存部(GR-SAKURA用)
    4943 */
    5044
     
    5347
    5448#include "gr_sakura.h"
    55 #include "serial_api.h"
     49#include <t_stddef.h>
    5650
    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優先度 */
    5960
    6061#ifndef TOPPERS_MACRO_ONLY
    6162
    62 typedef struct sio_port_control_block SIOPCB;
     63/*
     64 *  SIOポート管理ブロックの定義
     65 */
     66typedef struct sio_port_control_block   SIOPCB;
     67
     68/*
     69 *  コールバックルーチンの識別番号
     70 */
     71#define SIO_RDY_SND             1U              /* 送信可能コールバック */
     72#define SIO_RDY_RCV             2U              /* 受信通知コールバック */
    6373
    6474/*
     
    6878
    6979/*
    70  *  シリアルI/Oポートのオープン
     80 *  SIOドライバの終了処理
     81 */
     82extern void             sio_terminate(intptr_t exinf);
     83
     84/*
     85 *  SIOポートのオープン
    7186 */
    7287extern SIOPCB   *sio_opn_por(ID siopid, intptr_t exinf);
    7388
    7489/*
    75  *  シリアルI/Oポートのクローズ
     90 *  SIOポートのクローズ
    7691 */
    7792extern void             sio_cls_por(SIOPCB *p_siopcb);
    7893
    7994/*
    80  *  シリアルI/Oポートへの文字送信
     95 *  SIOの割込みサービスルーチン
     96 */
     97extern bool_t   sio_isr_snd(ID siopid);
     98
     99/*
     100 *  SIOの割込みサービスルーチン
     101 */
     102extern bool_t   sio_isr_rcv(ID siopid, char c);
     103
     104/*
     105 *  SIOポートへの文字送信
    81106 */
    82107extern bool_t   sio_snd_chr(SIOPCB *siopcb, char c);
    83108
    84109/*
    85  *  シリアルI/Oポートからの文字受信
     110 *  SIOポートからの文字受信
    86111 */
    87112extern int_t    sio_rcv_chr(SIOPCB *siopcb);
    88113
    89114/*
    90  *  シリアルI/Oポートからのコールバックの許可
     115 *  SIOポートからのコールバックの許可
    91116 */
    92117extern void             sio_ena_cbr(SIOPCB *siopcb, uint_t cbrtn);
    93118
    94119/*
    95  *  シリアルI/Oポートからのコールバックの禁止
     120 *  SIOポートからのコールバックの禁止
    96121 */
    97122extern void             sio_dis_cbr(SIOPCB *siopcb, uint_t cbrtn);
    98123
    99124/*
    100  *  シリアルI/Oポートからの送信可能コールバック
     125 *  SIOポートからの送信可能コールバック
    101126 */
    102127extern void             sio_irdy_snd(intptr_t exinf);
    103128
    104129/*
    105  *  シリアルI/Oポートからの受信通知コールバック
     130 *  SIOポートからの受信通知コールバック
    106131 */
    107132extern void             sio_irdy_rcv(intptr_t exinf);
    108133
    109 
    110134#endif /* TOPPERS_MACRO_ONLY */
    111135#endif /* TOPPERS_TARGET_SERIAL_H */
Note: See TracChangeset for help on using the changeset viewer.