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

📄 bspspuriousinit.c

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 C
字号:
/* *  CXX Spurious Trap Handler Install Routine * *  This is just enough of a trap handler to let us know what  *  the likely source of the trap was. * *  COPYRIGHT (c) 1989-1999. *  On-Line Applications Research Corporation (OAR). * *  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: bspspuriousinit.c,v 1.2.4.1 2003/09/04 18:44:45 joel Exp $ */#include <bsp.h>#include <rtems/bspIo.h>/* *  bsp_spurious_initialize * *  Install the spurious handler for most vectors.  */rtems_isr bsp_spurious_handler(   rtems_vector_number  vector/*,   CPU_Interrupt_frame *isf */);void bsp_spurious_initialize(){  rtems_unsigned32 vector;  for ( vector=0 ; vector<255 ; vector++ ) {    /*     *  Skip any vectors that might be generally used for traps.     *     *  XXX     */    set_vector( bsp_spurious_handler, vector, 1 );  }}

⌨️ 快捷键说明

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