⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dio.c

📁 DSP/BIOS Driver Developer Kit 1.11 The DSP/BIOS Driver Developer Kit (DDK) provides a selection of
💻 C
字号:
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DDK 1.11.00.00 11-04-03 (ddk-b13)" */
/*
 *  ======== dio.c ========
 *
 *  DSP/BIOS SIO device driver (DEV) which interfaces to IOM mini-
 *  drivers. See the DSP/BIOS Users Guide for more information on SIO
 *
 */

#include <std.h>

#include <dev.h>
#include <sys.h>

#include <dio.h>

Int     DIO_ctrl(DEV_Handle device, Uns cmd, Arg arg);
Int     DIO_issue(DEV_Handle device);

/*
 *  ======== DIO_ctrl ========
 *  Simply call down to the mini-driver.
 */
Int DIO_ctrl(DEV_Handle device, Uns cmd, Arg arg)
{
    Int status;

    DIO_Handle dio = (DIO_Handle)device->object;

    status = dio->fxns->mdControlChan(dio->chanp, cmd, (Ptr)arg);

    if (status < 0 ) {
        return (SYS_EBADIO);
    }
    else {
        return (SYS_OK);
    }
}

/*  ======== DIO_init ========
 *
 */
Void DIO_init(Void)
{
    /*
     *  Module initialization
     */
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -