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

📄 bsp_irq_init.c

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 C
字号:
/* irq_init.c * *  This file contains the implementation of rtems initialization *  related to interrupt handling. * *  CopyRight (C) 2000 Canon Research Centre France SA. *  Emmanuel Raguet, mailto:raguet@crf.canon.fr * *  The license and distribution terms for this file may be *  found in the file LICENSE in this distribution or at *  http://www.rtems.com/license/LICENSE. * *  $Id: bsp_irq_init.c,v 1.1.6.1 2003/09/04 18:43:50 joel Exp $ */#include <irq.h>#include <bsp.h>#include <registers.h>void BSP_rtems_irq_mngt_init() {  /* Initialize the vector table address in internal RAM */  Regs[INTTAB] = VECTOR_TABLE;    /* Initialize the GLOBAL INT CONTROL register */  Regs[INTGCNTL] = 0x00;  /* Mask all the interrupts */  Regs[INTMASK] = 0xFFFF;  /* Unmask the 2 arm interrupts IRQ and FIQ on the INT controller */  Regs[INTMASKALL] = 0x0;  /* Ack pending interrupt */  while ( ( Regs[INTSTAT] & 0xF433 ) != 0 ) {    Regs[INTACK] = 0xFFFF;	    Regs[INTEOI] = EOI;  }}

⌨️ 快捷键说明

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