isr51.h

来自「8051的UCOS实时操作系统(源代码)」· C头文件 代码 · 共 38 行

H
38
字号
/* $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 + =
减小字号Ctrl + -
显示快捷键?