gio_cfg.c
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- /*
- * 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.10.00.23 07-02-03 (ddk-b12)" */
- /*
- * ======== 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;