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

📄 isr51.h

📁 8051的UCOS实时操作系统(源代码)
💻 H
字号:
/* $Id: isr51.h,v 1.1 1997/07/17 12:38:05 gianpi Exp $
 *
 * Description:
 *	8051 Interrupt Service Routines - Prototypes.
 *
 * Author[s]:
 *	Gianpaolo Macario	gianpi@geocities.com
 */

#ifndef _ISR51_H_
#define _ISR51_H_

#include <stdio.h>
#include "includes.h"

typedef void (*ISR_PTR)(void);

#define NUM_INTERRUPTS	8	/* 0 ... NUM_INTERRUPTS-1 */

/* Symbolic defines for isr_num */
#define INT_IE0		0
#define INT_TF0		1
#define INT_IE1		2
#define INT_TF1		3
#define INT_RI_TI	4
#define INT_UNK5	5
#define INT_UNK6	6
#define INT_UNK7	7

/* Return current interrupt vector */
ISR_PTR getvect(u_char isr_num);

void setvect(u_char isr_num, ISR_PTR newfunc);

#endif	/* ndef _ISR51_H_ */

/* === End of File === */

⌨️ 快捷键说明

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