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

📄 mds8360intrmux.c

📁 MPC8360MDS VXWORKS BSP
💻 C
字号:
/* mds8360IntrCtl.c - Intermidiary interrupt connection routines *//* Copyright (c) 2006 Wind River Systems, Inc. *//*modification history--------------------01a,10mar06,dtr  Create.*//*DESCRIPTIONINCLUDE FILES: mds8360IntrMux.h*/#include "mds8360IntrMux.h"LOCAL STATUS mds8360IntConnect    (    VOIDFUNCPTR *   vector,     /* interrupt vector to attach to */    VOIDFUNCPTR     routine,    /* routine to be called */    int         parameter   /* parameter to be passed to routine */    );STATUS mds8360IntrInit ()    {    /* Install `system' intConnect routine */        _func_intConnectRtn = mds8360IntConnect;        _func_intEnableRtn = mds8360IntEnable;        _func_intDisableRtn = mds8360IntDisable;    return(OK);    }/*************************************************************************** mds8360IntConnect - connect a routine to an interrupt ** RETURNS: OK, or ERROR if <vector> is unknown.** SEE ALSO: mds8360Intr.h*/LOCAL STATUS mds8360IntConnect    (    VOIDFUNCPTR *   vector,     /* interrupt vector to attach to */    VOIDFUNCPTR     routine,    /* routine to be called */    int         parameter   /* parameter to be passed to routine */    )    {    STATUS retVal = OK;    UINT32 localVector;    retVal = quiccIntConnect(vector,routine,parameter);         localVector = ((UINT32)vector - IVEC_MAX);    if ((localVector >= 0) && (localVector < QE_IVEC_MAX))	retVal = qeIntConnect((VOIDFUNCPTR *)localVector,routine,parameter);    return (retVal);    }/************************************************************************** mds8360IntEnable - enable the indicated interrupt** RETURNS: 0, always.*/int mds8360IntEnable    (    int intNum      /* interrupt level to enable */    )    {    int retVal = OK;    retVal = quiccIntEnable(intNum);        if(intNum > IVEC_MAX)	retVal = qeIntEnable(intNum - IVEC_MAX);    return(retVal);    }/**************************************************************************** mds8360IntDisable - Disable one of the Level or IRQ interrupts into the SIU** RETURNS: 0, always.*/int mds8360IntDisable    (    int intNum      /* interrupt level to enable */    )    {    int retVal;    retVal = quiccIntDisable(intNum);    if(intNum > IVEC_MAX)	retVal = qeIntDisable(intNum - IVEC_MAX);    return(retVal);    }

⌨️ 快捷键说明

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