lansy的笔记 https://bbs.21ic.com/?198187 [收藏] [复制] [RSS]

日志

我的简易操作系统--ISR.h(3)

已有 574 次阅读2006-4-15 20:34 |个人分类:凌阳单片机|系统分类:单片机


 #ifndef __ISR_h__
#define __ISR_h__


#include "..\include\main.h"
#include "..\include\OS_Core.h"
///////////////////////////////////////////////////////////////////
// *pfn指向须中断执行的程序,isrSource表明中断类型,
BOOL RegInterrupt(void (*pfn)(void), INT16U isrSource);


// isrSource 参数取值如下


#define FIQ_TMA  0     
#define FIQ_TMB  1  
#define FIQ_PWM  2     
#define IRQ0_PWM  3     
#define IRQ1_TMA  4    
#define IRQ2_TMB  5
#define IRQ3_EXT1  6
#define IRQ3_EXT2 7
#define IRQ3_KEY  8
#define IRQ4_4KHz  9
#define IRQ4_2KHz  10
#define IRQ4_1KHz  11
#define IRQ5_4Hz  12
#define IRQ5_2Hz  13
#define IRQ6_TMB1  14
#define IRQ6_TMB2  15
#define IRQ7_UART_Rx  16
#define IRQ7_UART_Tx  17
#define IRQ_BREAK  18


#endif


路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)