salvolvl.h

来自「这是AVR单片机上能跑的嵌入式操作系统salvo」· C头文件 代码 · 共 63 行

H
63
字号
/************************************************************ 
The contents of this file are subject to the Pumpkin Salvo
License (the "License").  You may not use this file except
in compliance with the License. You may obtain a copy of
the License at http://www.pumpkininc.com, or from
warranty@pumpkininc.com.

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 specific language governing
the warranty and the rights and limitations under the
License.

The Original Code is Salvo - The RTOS that runs in tiny
places(TM). Copyright (C) 1995-2002 Pumpkin, Inc. and its
Licensor(s). All Rights Reserved.
 
$Source: C:\\RCS\\d\\salvo\\inc\\salvolvl.h,v $
$Author: aek $
$Revision: 3.3 $
$Date: 2003-01-05 14:32:53-08 $

pragmas to handle interrupt levels for stackless compilers.

See comments in salvomcg.h on why this header file doesn't 
have include guards ...

************************************************************/


/************************************************************
****                                                     ****
**                                                         **
PICC, PICC-Lite, PICC-18 and V8C:

**                                                         **
****                                                     ****
************************************************************/
#if  ( OSCOMPILER == OSHT_PICC ) || ( OSCOMPILER == OSHT_V8C )

#if   OSINTERRUPT_LEVEL == 0
#pragma interrupt_level 0
#elif OSINTERRUPT_LEVEL == 1
#pragma interrupt_level 1
#elif OSINTERRUPT_LEVEL == 2
#pragma interrupt_level 2
#elif OSINTERRUPT_LEVEL == 3
#pragma interrupt_level 3
#elif OSINTERRUPT_LEVEL == 4
#pragma interrupt_level 4
#elif OSINTERRUPT_LEVEL == 5
#pragma interrupt_level 5
#elif OSINTERRUPT_LEVEL == 6
#pragma interrupt_level 6
#elif OSINTERRUPT_LEVEL == 7
#pragma interrupt_level 7
#else
#error salvolvl.h: Invalid interrupt level: OSINTERRUPT_LEVEL. 
#endif

#endif /* #if OSCOMPILER == ... */

⌨️ 快捷键说明

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