* arch/arm/src/dm320/dm320_timer.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_DM320_DM320_TIMER_H
#define __ARCH_ARM_SRC_DM320_DM320_TIMER_H
* Included Files
****************************************************************************/
* Pre-processor Definitions
****************************************************************************/
#define DM320_TIMER0_TMMD (DM320_PERIPHERALS_VADDR + 0x0000)
#define DM320_TIMER0_TMPRSCL (DM320_PERIPHERALS_VADDR + 0x0004)
#define DM320_TIMER0_TMDIV (DM320_PERIPHERALS_VADDR + 0x0006)
#define DM320_TIMER0_TMTRG (DM320_PERIPHERALS_VADDR + 0x0008)
#define DM320_TIMER0_TMCNT (DM320_PERIPHERALS_VADDR + 0x000A)
#define DM320_TIMER1_TMMD (DM320_PERIPHERALS_VADDR + 0x0080)
#define DM320_TIMER1_TMPRSCL (DM320_PERIPHERALS_VADDR + 0x0084)
#define DM320_TIMER1_TMDIV (DM320_PERIPHERALS_VADDR + 0x0086)
#define DM320_TIMER1_TMTRG (DM320_PERIPHERALS_VADDR + 0x0088)
#define DM320_TIMER1_TMCNT (DM320_PERIPHERALS_VADDR + 0x008A)
#define DM320_TIMER2_TMMD (DM320_PERIPHERALS_VADDR + 0x0100)
#define DM320_TIMER2_TMPRSCL (DM320_PERIPHERALS_VADDR + 0x0104)
#define DM320_TIMER2_TMDIV (DM320_PERIPHERALS_VADDR + 0x0106)
#define DM320_TIMER2_TMTRG (DM320_PERIPHERALS_VADDR + 0x0108)
#define DM320_TIMER2_TMCNT (DM320_PERIPHERALS_VADDR + 0x010A)
#define DM320_TIMER3_TMMD (DM320_PERIPHERALS_VADDR + 0x0180)
#define DM320_TIMER3_TMPRSCL (DM320_PERIPHERALS_VADDR + 0x0184)
#define DM320_TIMER3_TMDIV (DM320_PERIPHERALS_VADDR + 0x0186)
#define DM320_TIMER3_TMTRG (DM320_PERIPHERALS_VADDR + 0x0188)
#define DM320_TIMER3_TMCNT (DM320_PERIPHERALS_VADDR + 0x018A)
#define DM320_TMR_MODE_TEST_MASK 0x00fc
#define DM320_TMR_MODE_MODE_MASK 0x0003
# define DM320_TMR_MODE_STOP 0x0000
# define DM320_TMR_MODE_ONESHOT 0x0001
# define DM320_TMR_MODE_FREERUN 0x0002
#define DM320_TMR_PRSCL_MASK 0x03ff
#define DM320_TMR_DIV_MASK 0xffff
#define DM320_TMR_TMTRG_MASK 0x0001
# define DM320_TMR_TMTRG_START 0x0001
#define DM320_TMR_COUNT_MASK 0xffff
* Inline Functions
****************************************************************************/
#ifndef __ASSEMBLY__
#endif
#endif