⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtai_arch.h

📁 rtai-3.1-test3的源代码(Real-Time Application Interface )
💻 H
字号:
/* rtai/include/asm-arm/arch-sa1100/rtai_arch.h-------------------------------------------------------------DON碩 include directly - it's included through asm-arm/rtai.h-------------------------------------------------------------COPYRIGHT (C) 2002 Guennadi Liakhovetski, DSA GmbH (gl@dsa-ac.de)COPYRIGHT (C) 2002 Wolfgang M黮ler (wolfgang.mueller@dsa-ac.de)Copyright (c) 2001 Alex Z黳ke, SYSGO RTS GmbH (azu@sysgo.de)This program is free software; you can redistribute it and/or modifyit under the terms of version 2 of the GNU General Public License aspublished by the Free Software Foundation.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//*--------------------------------------------------------------------------Acknowledgements- Paolo Mantegazza	(mantegazza@aero.polimi.it)	creator of RTAI */#ifndef _ASM_ARCH_RTAI_ARCH_H_#define _ASM_ARCH_RTAI_ARCH_H_#define FREQ_SYS_CLK       3686400#define LATENCY_MATCH_REG     2000#define SETUP_TIME_MATCH_REG   600#define LATENCY_TICKS    (LATENCY_MATCH_REG/(1000000000/FREQ_SYS_CLK))#define SETUP_TIME_TICKS (SETUP_TIME_MATCH_REG/(1000000000/FREQ_SYS_CLK))#define TIMER_8254_IRQ		IRQ_OST0#define ARCH_MUX_IRQ		IRQ_GPIO11_27#include <asm/arch/irq.h>void rtai_sa1100_GPIO11_27_demux( int irq, void *dev_id, struct pt_regs *regs );static inline void arch_mount_rtai( void ){	/* Let's take care about our "special" IRQ11 *///	free_irq( IRQ_GPIO11_27 );	rt_request_global_irq_ext( IRQ_GPIO11_27, rtai_sa1100_GPIO11_27_demux, NULL );}static inline void arch_umount_rtai( void ){	rt_free_global_irq( IRQ_GPIO11_27 );//	request_irq( IRQ_GPIO11_27, sa1100_GPIO11_27_demux, SA_INTERRUPT, "GPIO 11-27", NULL );}/* Check, if this is a demultiplexed irq */#define isdemuxirq(irq) (irq >= IRQ_GPIO11)#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -