📄 irq.h
字号:
/******************************************************************************
Copyright (C) 2005 Oki Electric Industry Co.,LTD.
System Name : ML69Q6203 CPU Board
Module Name : header file for using IRQ
File Name : irq.h
Revision : 01.00
Date : 2005/03/06 First version
******************************************************************************/
#ifndef IRQ_H
#define IRQ_H
#include "common.h"
/* type definition */
typedef void IRQ_HANDLER(void);
typedef IRQ_HANDLER *pIRQ_HANDLER;
/* functions */
/*************************************************************************************************/
/* Enable IRQ */
/* Function : UWORD irq_en(void) */
/* Parameters */
/* input : nothing */
/* output : IRQ state before change */
/* 0 : Enable */
/* others : Disable */
/*************************************************************************************************/
UWORD irq_en(void);
/*************************************************************************************************/
/* Disable IRQ */
/* Function : UWORD irq_dis(void) */
/* Parameters */
/* input : nothing */
/* output : IRQ state before change */
/* 0 : Enable */
/* others : Disable */
/*************************************************************************************************/
UWORD irq_dis(void);
/*************************************************************************************************/
/* Initialize Interrupt Control Registers (IRQ interrupt) */
/* Function : init_irq */
/* Parameters */
/* Input : Nothing */
/* Output : Nothing */
/*************************************************************************************************/
void init_irq(void);
#define IRQSIZE 64
/*************************************************************************************************/
/* Table of IRQ handler */
/* If interrupt of interrupt number N occurred, */
/* function of IRQ_HANDLER_TABLE[N] is called. */
/*************************************************************************************************/
extern pIRQ_HANDLER IRQ_HANDLER_TABLE[IRQSIZE];
/****************************************************************************/
/* Enable FIQ */
/* Function : UWORD fiq_en(void) */
/* Parameters */
/* input : nothing */
/* output : FIQ state before change */
/* 0x2 : Enable */
/* 0x3 : Disable */
/* Note : This function depends on software development tools */
/****************************************************************************/
UWORD fiq_en(void);
/****************************************************************************/
/* Disable FIQ */
/* Function : UWORD fiq_dis(void) */
/* Parameters */
/* input : nothing */
/* output : FIQ state before change */
/* 0x2 : Enable */
/* 0x3 : Disable */
/* Note : This function depends on software development tools */
/****************************************************************************/
UWORD fiq_dis(void);
#endif /* #define IRQ_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -