/*
** ###################################################################
**
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**
**     Filename  : EInt1.C
**
**     Project   : projRT1
** 
**     Processor : MC68HC908AZ60MFU
**
**     Beantype  : ExtInt
**
**     Version   : Bean 02.015, Driver 01.10, CPU db: 2.81.019
**
**     Compiler  : Metrowerks HC08 C Compiler V-5.0.13
**
**     Date/Time : 2.4.2002, 8:38
**
**     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              : INT_IRQ1
**         User handling procedure     : EInt1_OnInterrupt
**
**         Used pin                    : 
**             ----------------------------------------------------
**                Number (on package)  |    Name
**             ----------------------------------------------------
**                       2             |  IRQ
**             ----------------------------------------------------
**
**         Signal edge/level           : falling
**         Initial state               : Enabled
**
**         Edge register               : ISCR      [26]
**         Enable register             : ISCR      [26]
**         Request register            : ISCR      [26]
**
**
**     Contents  :
**
**         GetVal - bool EInt1_GetVal(void);
**
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2002
**
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
**
** ###################################################################
*/

#include "EInt1.h"

/*Including shared modules, which are used for all project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "Events.h"
#include "Cpu.h"

/*
** ===================================================================
**     Method      :  EInt1_Interrupt (bean ExtInt)
**
**     Description :
**         This method is internal. It is used by Processor Expert
**         only.
** ===================================================================
*/
__interrupt void EInt1_Interrupt(void)
{
  EInt1_OnInterrupt();
}

/*
** ===================================================================
**     Method      :  EInt1_GetVal (bean ExtInt)
**
**     Description :
**         Return the actual value of the input pin of the bean
**         (FALSE , TRUE).
**     Parameters  : None
**     Returns     :
**         ---             - Returned input value
** ===================================================================
*/
#pragma MESSAGE DISABLE C1404          /* WARNING C1404: Return expected */
bool EInt1_GetVal(void)
{
  asm {
    CLRA
    BIL  low
    COMA
    low:
  }
}

/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 02.84 for 
**     the Motorola HC08 series of microcontrollers.
**
** ###################################################################
*/
