📄 intr_cntl.c
字号:
/*******************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained herein
* is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of INFOMAX COMMUNICATION CO.,LTD.
*
* MODULE NAME: Interrupt controller
* DESCRIPTION: Interrupt controller API
* AUTHOR: Bo-Hung Wu
* BEGIN DATE: Oct. 19, 2007
* LAST MODIFICATION: Oct. 19, 2007
*****************************************************************************/
/*******************************************************************************
Include/header files
*******************************************************************************/
#include "intr_cntl.h"
/*******************************************************************************
Constant/Marco
*******************************************************************************/
/*******************************************************************************
Structure/Union/Enum/Typedef
*******************************************************************************/
/*******************************************************************************
Local function prototype
*******************************************************************************/
/*******************************************************************************
Global/Local variables
*******************************************************************************/
/*******************************************************************************
Function implementation
*******************************************************************************/
/**
@Desc
Description for function_name
@Param parameter 1
Put parameter 1 description here
@Param parameter 2
Put parameter 2 description here
@Return Return value 1 and it description
@Return Return value 1 and it description
*/
void intr_cntl_set_priority(intr_cntl_priority_conf_T *intr_cntl_priority_conf_param_p)
{ *PRI_SET_1_REG = *(UINT32 *)&(intr_cntl_priority_conf_param_p->sub_0); *PRI_SET_2_REG = *(UINT32 *)&(intr_cntl_priority_conf_param_p->sub_1);}
void intr_cntl_get_priority(intr_cntl_priority_conf_T *intr_cntl_priority_conf_param_p)
{ intr_cntl_priority_conf_param_p->sub_0 = *(intr_cntl_priority_conf_sub_T *)(&(*PRI_SET_1_REG));
intr_cntl_priority_conf_param_p->sub_1 = *(intr_cntl_priority_conf_sub_T *)(&(*PRI_SET_2_REG));}
void intr_cntl_IRQ_select(UINT32 IRQ_ID_val)
{ *IRQ_SEL_REG = IRQ_ID_val;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -