base/include/asm-arm/arch-at91/rtai_arch.h

Go to the documentation of this file.
00001 /* rtai/include/asm-arm/arch-at91/rtai_arch.h
00002 -------------------------------------------------------------
00003 DONT include directly - it's included through asm-arm/rtai.h
00004 -------------------------------------------------------------
00005 COPYRIGHT (C) 2002 Guennadi Liakhovetski, DSA GmbH (gl@dsa-ac.de)
00006 COPYRIGHT (C) 2002 Wolfgang Müller (wolfgang.mueller@dsa-ac.de)
00007 Copyright (c) 2001 Alex Züpke, SYSGO RTS GmbH (azu@sysgo.de)
00008 Copyright (c) 2005 Luca Pizzi, (lucapizzi@hotmail.com)
00009 Copyright (c) 2005 Stefano Gafforelli, (stefano.gafforelli@tiscali.it)
00010 Copyright (C) 2007 Adeneo
00011 
00012 This program is free software; you can redistribute it and/or modify
00013 it under the terms of version 2 of the GNU General Public License as
00014 published by the Free Software Foundation.
00015 
00016 This program is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 GNU General Public License for more details.
00020 
00021 You should have received a copy of the GNU General Public License
00022 along with this program; if not, write to the Free Software
00023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024 */
00025 /*
00026 --------------------------------------------------------------------------
00027 Acknowledgements
00028 - Paolo Mantegazza  (mantegazza@aero.polimi.it)
00029     creator of RTAI
00030 */
00031 
00032 #ifndef _ASM_ARCH_RTAI_ARCH_H_
00033 #define _ASM_ARCH_RTAI_ARCH_H_
00034 
00035 #include <asm/arch/hardware.h>
00036 #include <asm/arch/at91_pmc.h>
00037 
00038 /* irq number of timer interrupt */
00039 #define RTAI_TIMER_IRQ      __ipipe_mach_timerint
00040 
00041 /* clock frequency of timer that generates timer-interrupt [Hz] */
00042 #define RTAI_TIMER_FREQ     CLOCK_TICK_RATE
00043 
00044 /* maximal timer load value */
00045 #define RTAI_TIMER_MAXVAL   0xFFFF
00046 
00047 /* clock frequency of time-stamp-counter (TSC) (TC on AT91) [Hz] */
00048 #define RTAI_TSC_FREQ       CLOCK_TICK_RATE
00049 
00050 /* - oneshot timer latency (is subtracted from oneshot delay) [nanoseconds]
00051  *   (specify it with TSC resolution (because it is used this way in the scheduler)) */
00052 #define RTAI_TIMER_LATENCY  6000
00053 
00054 /* - oneshot timer setup delay (i.e. minimal oneshot delay) [nanoseconds]
00055  *   (specify it with TSC resolution) */
00056 #define RTAI_TIMER_SETUP_TIME   1500
00057 
00058 /* name of timer */
00059 #define RTAI_TIMER_NAME     "TIMER1"
00060 
00061 #define RTAI_CALIBRATED_CPU_FREQ    0
00062 #define RTAI_CALIBRATED_APIC_FREQ   0
00063 
00064 extern inline void
00065 rtai_archdep_init(void)
00066 {
00067     /* nothing to do */
00068 }
00069 
00070 extern inline void
00071 rtai_archdep_exit(void)
00072 {
00073     /* nothing to do */
00074 }
00075 
00076 #endif /* _ASM_ARCH_RTAI_ARCH_H_ */

Generated on Tue Feb 2 17:46:04 2010 for RTAI API by  doxygen 1.4.7