?? dio.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 + -