freescale
来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 103 行
TXT
103 行
/** ###################################################################
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : IRQ.C
** 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
** ###################################################################*/
#include "IRQ.h"
/*Including shared modules, which are used for all project*/
#include "Events.h"
#include "Cpu.h"
/*
** ===================================================================
** 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.
** ===================================================================
*/
ISR(IRQ_Interrupt)
{
KBISC_KBACK = 1; /* Clear the interrupt flag */
IRQ_OnInterrupt(); /* Invoke user event */
}
/*
** ===================================================================
** 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)
** ===================================================================
*/
/*
bool IRQ_GetVal(void)
** This method is implemented as macro. See IRQ.h file. **
*/
/*
** ###################################################################
**
** 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 + -
显示快捷键?