gio_cfg.c
来自「DSP/BIOS Driver Developer Kit 1.11 The 」· C语言 代码 · 共 35 行
C
35 行
/*
* 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)" */
/*
* ======== gio_cfg.c ========
* General Input/Output Module's public header file.
*
*/
#include <std.h>
#include <gio.h>
#include <sem.h>
/*
* A pointer named 'GIO' and a global GIO_CONFIG structure will be initialized
* by the configuration tool to point to an GIO_Config structure. This
* structure will be referenced at run-time so that IOM will not have any
* hard-coded reference to SEM_pend, SEM_post, etc. This will allow IOM to
* be used in TSK and non-TSK based applications.
*/
GIO_Config GIO_CONFIG = {
(GIO_TsemCreate)SEM_create,
(GIO_TsemDelete)SEM_delete,
(GIO_TsemPend)SEM_pend,
(GIO_TsemPost)SEM_post
};
GIO_Config *GIO = &GIO_CONFIG;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?