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

📄 vectors.h

📁 ecos为实时嵌入式操作系统
💻 H
字号:
#ifndef CYGONCE_HAL_VECTORS_H#define CYGONCE_HAL_VECTORS_H//=============================================================================////      vectors.h////      SPARClite Architecture specific vector numbers &c////=============================================================================//####COPYRIGHTBEGIN####//// -------------------------------------------// The contents of this file are subject to the Cygnus eCos Public License// Version 1.0 (the "License"); you may not use this file except in// compliance with the License.  You may obtain a copy of the License at// http://sourceware.cygnus.com/ecos// // Software distributed under the License is distributed on an "AS IS"// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the// License for the specific language governing rights and limitations under// the License.// // The Original Code is eCos - Embedded Cygnus Operating System, released// September 30, 1998.// // The Initial Developer of the Original Code is Cygnus.  Portions created// by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions.  All Rights Reserved.// -------------------------------------------////####COPYRIGHTEND####//=============================================================================//#####DESCRIPTIONBEGIN####//// Author(s):   hmt// Contributors:hmt// Date:        1998-12-10// Purpose:     Define architecture abstractions and some shared info;//              this file is included by assembler files as well as C/C++.// Usage:       #include <cyg/hal/vectors.h>//              //####DESCRIPTIONEND####////=============================================================================#define __WINSIZE 8#define __WINBITS 7#define __WINBITS_MAXIMAL 0x1f#define __WIN_INIT 7#define __WIM_INIT 0x80#define TRAP_WUNDER     6       // Window Underflow trap number#define TRAP_WOVER      5       // Window Overflow trap number#define TRAP_INTR_MIN   17      // smallest interrupt trap number#define TRAP_INTR_MAX   31      // largest interrupt trap number#define TT_MASK         0xff0   // trap type mask from tbr#define TT_SHL          4       // shift to get a tbr value// Alternatively, detect an interrupt by testing tbr for being in the range// 16-31 by masking &c:#define TT_IS_INTR_MASK         0xf00#define TT_IS_INTR_VALUE        0x100#if TT_IS_INTR_VALUE != ((TRAP_INTR_MIN << TT_SHL) & TT_IS_INTR_MASK)#error "Bad *_INTR_* symbol definition (1)"#endif#if TT_IS_INTR_VALUE != ((TRAP_INTR_MAX << TT_SHL) & TT_IS_INTR_MASK)#error "Bad *_INTR_* symbol definition (2)"#endif#if TT_IS_INTR_VALUE != (((TRAP_INTR_MIN+1) << TT_SHL) & TT_IS_INTR_MASK)#error "Bad *_INTR_* symbol definition (3)"#endif#if TT_IS_INTR_VALUE != (((TRAP_INTR_MAX-1) << TT_SHL) & TT_IS_INTR_MASK)#error "Bad *_INTR_* symbol definition (4)"#endif        //#define SCHED_LOCK_MANGLED_NAME _18Cyg_Scheduler_Base.sched_lock#define SCHED_LOCK_MANGLED_NAME cyg_scheduler_sched_lock#define SAVE_REGS_SIZE (4 * 32) // 32 words of 4 bytes each#endif // CYGONCE_HAL_VECTORS_H// EOF vectors.h

⌨️ 快捷键说明

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