/*
*******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : lart_hr.h
Group            : IPSW,CMG-IPDF.
Author           : MCD Application Team
Date First Issued: 15/3/2002  
********************************Documentation**********************************
General Purpose - Bit definitions for registers
********************************RevisionHistory********************************
_______________________________________________________________________________
Date : 15/3/2002   Release:1.0             	  
Date : 23/9/2003   Release:2.0
                   1. Removed register declarations\definitions to device_reg.h 
                   2. Added Bit definitions to improve readabelity and 
                      portabelity 
Date : 28/04/04    Release:2.1
                   1.Changed for MISRA compliance           	  
*******************************************************************************/
#ifndef LART_HR_H
#define LART_HR_H    

/* PWMCR register bit configuration                                           */
#define PWM0_OUT_ENB          0x01
#define PWM1_OUT_ENB          0x04
#define PWM2_OUT_ENB          0x10
#define PWM3_OUT_ENB          0x40

/* PWMxCSR register bit configuration                                         */
#define PWM_POLARITY          0x02
#define CMP_FLAG              0x01

/* ARTCSR register configuration                                              */
#define ICF_FLAG              0x40
#define ICAP_IT_ENB           0x20
#define OVF_FLAG              0x04
#define OVF_IT_ENB            0x02
#define CMP_IT_ENB            0x01
#define CLK_MASK              0x18          

/* TRANCR register configuration                                              */
#define TRAN_ENB              0x01   

/* BREAKCR register configuration                                             */
#define BREAK_PIN_ENABLE      0x10
#define BREAK_START           0x20
#define BREAK_PWM_MASK        0x0F 

/* ATCSR2 register configuration                                              */
#define ICS_ENABLE            0x20
#define OVF2_IT_ENB           0x10
#define OVF2_FLAG             0x08
#define CTR2_ENABLE           0x04
#define TRAN2_ENB             0x02
#define TRAN1_ENB             0x01


/* Bit definitions used for Lite timer These are used for long Input capture
   mode. These should be changed if there is some change in Lite timer        */
#define LT_ICAP_IT_ENB        0x80

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