irq_init.c

来自「RTEMS (Real-Time Executive for Multiproc」· C语言 代码 · 共 52 行

C
52
字号
/* 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: irq_init.c,v 1.5.2.1 2003/09/04 18:43:49 joel Exp $ */#include <irq.h>#include <bsp.h>#include <rtems/bspIo.h>/* * default int vector */extern void _ISR_Handler();void default_int_handler(){  printk("raw_idt_notify has been called \n");}void  rtems_irq_mngt_init(){    int 			i;    long			*vectorTable;    rtems_interrupt_level       level;        vectorTable = (long *) VECTOR_TABLE;        _CPU_ISR_Disable(level);    /* First, connect the ISR_Handler for IRQ and FIQ interrupts */    _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _ISR_Handler, NULL); 	    _CPU_ISR_install_vector(ARM_EXCEPTION_FIQ, _ISR_Handler, NULL); 	        /* Initialize the vector table contents with default handler */    for (i=0; i<BSP_MAX_INT; i++)      *(vectorTable + i) = (long)(default_int_handler);    /* Initialize the INT at the BSP level */    BSP_rtems_irq_mngt_init();}

⌨️ 快捷键说明

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