evmdm642_osd.h
上传用户: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)" */
- /*
- * ======== evmdm642_osd.h ========
- *
- * Interface for CPLD (OSD/FPGA) interrupts on the EVMDM642 board
- */
- #ifndef EVMDM642_OSD_
- #define EVMDM642_OSD_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define EVMDM642_OSD_NUM_IRQ 5
- enum EVMDM642_OSD_IRQ_TYPE {
- FIFO_URUN_IRQ,
- RTS1A_IRQ,
- RTS1B_IRQ,
- UARTA_IRQ,
- UARTB_IRQ
- };
- typedef void (*EVMDM642_OSD_IntHandler) (Ptr arg);
- /* Initialize the interrupt module APIs */
- void EVMDM642_OSD_init();
- /* Hook a sub-interrupt */
- EVMDM642_OSD_IntHandler EVMDM642_OSD_intHook(Uint32 index,
- EVMDM642_OSD_IntHandler fxn, Ptr arg);
- /* Unhook a sub-interrupt */
- EVMDM642_OSD_IntHandler EVMDM642_intUnhook(Uint32 index);
- #ifdef __cplusplus
- }
- #endif
- #endif