/*
********************************************************************************
COPYRIGHT 2002 STMicroelectronics
Source File Name : tbu_hr.h
Group            : IPSW, CMG - IPDF
Author           : MCD Application Team
Date First Issued:21/03/2002 
********************************Documentation***********************************
General Purpose - This file declares all the hardware registers bit definitions
********************************RevisionHistory*********************************

Date : 21/03/2002              	Release:1.0     
Date : 23/09/2003               Release:2.0
Date : 28/04/04                 MISRA changes
________________________________________________________________________________
1. Removed the mapping of hardware registers.
2. Defined  constants used in tbu.c.
3. Included necessary comments.
4. Updated file for release 2.0.
*******************************************************************************/
#ifndef TBU_HR_H
#define TBU_HR_H

#include "ST7lib_config.h"                                  

/******************************************************************************/
/***** H A R D W A R E   R E G I S T E R   B I T   D E F I N I T I O N S ******/
/******************************************************************************/

#define DEFAULT_CV  (0x00)             /* sets the default value in registers */
#define RESET_PRESC8 (0xf8)                    /* Reset value for 8 bit timer */       
#define RESET_PRESC16 (0x8f)                  /* Reset value for 16 bit timer */
#define INTERRUPT_ENABLE (0x08)                     /* Timer interrupt enable */
#define INTERRUPT_DISABLE (0xf7)                   /* Timer interrupt disable */
#define CHECK_PRESCALER  (0x70)                 /* checks the prescaler value */
#define SPEED_2 (0x10)                               /* Prescaler factor is 2 */
#define SPEED_4 (0x20)                               /* Prescaler factor is 4 */
#define SPEED_8 (0x30)                               /* Prescaler factor is 8 */
#define SPEED_16 (0x40)                             /* Prescaler factor is 16 */

#endif  
  
/*** (c) 2003   STMicroelectronics *************************** END OF FILE ****/
