/*
********************************************************************************
COPYRIGHT 2002 STMicroelectronics
Source File Name : timer_hr.h
Group            : IPSW,CMG-IPDF.
Author           : MCD Application Team
Date First Issued: 6/3/2002 
********************************Documentation***********************************
General Purpose -  This file declares all the hardware registers bit definitions
********************************RevisionHistory*********************************
Date :6/3/2002 	       Release:1.0     
Date :23/9/2003        Release:2.0
Date :28/04/04         MISRA changes                                              
________________________________________________________________________________
1. Removed the mapping of hardware registers.
2. Defined  constants used in timer.c
3. Included necessary comments.
4. Updated file for release 2.0.
*******************************************************************************/
                                                                                
#ifndef TIMER_HR_H
#define TIMER_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 RESET_VALUE (0x8000)
#define RESET_CSR (0xFB)
   
#define OLVL1_LOW (0xFE)
#define OLVL1_HIGH (0x01)
#define OLVL2_LOW (0xFB)
#define OLVL2_HIGH (0x04)
#define FOLV1_ENABLE (0x08)    
#define FOLV2_ENABLE (0x10)
        
#define OCMP1_ENABLE (0x80) 
#define OCMP2_ENABLE (0x40) 
#define PWM_ENABLE (0x90)   
#define PWM_DISABLE (0xEF)
#define OPM_ENABLE (0xA0)
#define OPM_DISABLE (0xDF)
   
#define OCF1_CHECK (0x40)
#define OCF2_CHECK (0x08)
#define ICF1_CHECK (0x80)
#define ICF2_CHECK (0x10)
#define OVF_CHECK (0x20)  

#define ICAP_FALL (0xFD)
#define ICAP_RISE (0x02)
#define FCMP1_DISABLE (0xF7)
#define FCMP2_DISABLE (0xEF)
#define TIMER_DISABLE (0x04)
                               
#endif

/********** (c) 2002   STMicroelectronics ******************** END OF FILE ****/



