/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : QTMR0.H
**     Project   : bldc_hall_demo
**     Processor : MC56F8006_48_LQFP
**     Beantype  : Init_TMR
**     Version   : Bean 01.131, Driver 02.01, CPU db: 3.00.177
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 28.11.2008, 14:28
**     Abstract  :
**         This "Init_TMR" Peripheral Inspector implements the
**         Quad Timer module (TMR), basic initialization
**         and settings.
**     Settings  :
**         Timer counter device        : TMR0
**
**         Operation mode              : Count mode
**         Count once                  : count repeatedly
**         Count length                : roll-over
**         Count direction             : up
**         Master mode                 : Disabled
**         External OFLAG force        : Disabled
**         Forced OFLAG value          : 0
**         Force OFLAG ouput           : no
**         Output enable               : no
**         Output polarity             : true
**         Input  polarity             : true
**         Co-channel init.            : Disabled
**
**         Primary source              : prescaler (IP BUS clock / 128)
**         Secondary source            : counter 0 input pin
**
**         Input capture mode          : Enabled
**             Load capture register   : on any edge of input
**
**         Output mode                 : asserted while counter is active
**
**         Compare load control 1      : Disabled
**         Compare load control 2      : Disabled
**
**         Debug mode action           : Normal operation
**
**         Fault                       : Disabled
**
**         Alternative load            : Disabled
**
**         Interrupts
**             Timer compare           : Disabled
**             Timer overflow          : Disabled
**             Input edge              : Enabled
**             Timer compare 1         : Disabled
**             Timer compare 2         : Disabled
**             ISR name                : ISR_TimerCapture
**             Interrupt name          : INT_TMR0
**             Priority                : 2 (USER4)
**     Contents  :
**         Init - void QTMR0_Init(void);
**
**     (c) Copyright UNIS, a.s. 1997-2008
**     UNIS, a.s.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

#ifndef __QTMR0
#define __QTMR0

/* MODULE QTMR0. */

/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
/* Include inherited beans */
#include "Cpu.h"

/* PESL device mapping  */
#define QTMR0_DEVICE TMR0

extern void ISR_TimerCapture(void);


void QTMR0_Init(void);
/*
** ===================================================================
**     Method      :  QTMR0_Init (bean Init_TMR)
**
**     Description :
**         This method initializes registers of the TMR module
**         according to this Peripheral Initialization Bean settings.
**         Call this method in the user code to initialize the
**         module. By default, the method is called by PE
**         automatically; see "Call Init method" property of the
**         bean for more details.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

/* END QTMR0. */

#endif /* ifndef __QTMR0 */
/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.99 [04.17]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
