freescale
来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 105 行
TXT
105 行
/** ###################################################################
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : IRQ.H
** Project : taxi_meter
** Processor : MC9S08JM60CLHE
** Component : ExtInt
** Version : Component 02.094, Driver 01.19, CPU db: 3.00.046
** Compiler : CodeWarrior HCS08 C Compiler
** Date/Time : 2010-1-5, 21:23
** Abstract :
** This bean "ExtInt" implements an external
** interrupt, its control methods and interrupt/event
** handling procedure.
** The bean uses one pin which generates interrupt on
** selected edge.
** Settings :
** Interrupt name : Vkeyboard
** User handling procedure : IRQ_OnInterrupt
**
** Used pin :
** ----------------------------------------------------
** Number (on package) | Name
** ----------------------------------------------------
** 26 | PTG0_KBIP0
** ----------------------------------------------------
**
** Port name : PTG
**
** Bit number (in port) : 0
** Bit mask of the port : $0001
**
** Signal edge/level : falling
** Priority :
** Pull option : up
** Initial state : Enabled
**
** Edge register : KBIES [$001E]
** Enable register : KBIPE [$001D]
** Request register : KBISC [$001C]
**
** Port data register : PTGD [$000C]
** Port control register : PTGDD [$000D]
** Contents :
** GetVal - bool IRQ_GetVal(void);
**
** Copyright : 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved.
**
** http : www.freescale.com
** mail : support@freescale.com
** ###################################################################*/
#ifndef __IRQ_H
#define __IRQ_H
/* MODULE IRQ. */
/*Including shared modules, which are used in the whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "Events.h"
#include "Cpu.h"
__interrupt void IRQ_Interrupt(void);
/*
** ===================================================================
** Method : IRQ_Interrupt (component ExtInt)
**
** Description :
** The method services the interrupt of the selected peripheral(s)
** and eventually invokes the beans event(s).
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
#define IRQ_GetVal() \
((bool)((PTGD) & 0x01))
/*
** ===================================================================
** Method : IRQ_GetVal (component ExtInt)
**
** Description :
** Returns the actual value of the input pin of the bean.
** Parameters : None
** Returns :
** --- - Returned input value. Possible values:
** FALSE - logical "0" (Low level)
** TRUE - logical "1" (High level)
** ===================================================================
*/
#endif /* __IRQ_H*/
/*
** ###################################################################
**
** This file was created by Processor Expert 3.07 [04.34]
** for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?