sma_stackutils.h

来自「sharp触摸屏测试代码」· C头文件 代码 · 共 52 行

H
52
字号
/**********************************************************************
 * $Workfile:   SMA_stackutils.h  $
 * $Revision:   1.2  $
 * $Author:   KovitzP  $
 * $Date:   Jul 25 2002 10:57:10  $
 *
 * Project: ARM Processor Support
 *
 * Description:
 * 	  This module contains a function for changing the stack pointer
 * Usage for functions (return old stack pointer):
 *      UNS_32 * SMA_set_stack(UNS_32 * new_sp, UNS_32 mode)
 *      WARNING: This function is not re-entrant! Disable all
 *               interrupts before using this function.
 *
 * Revision History:
 * $Log:   //smaicnt2/pvcs/VM/CHIPS/archives/SOC/Include/SMA_stackutils.h-arc  $
 * 
 *    Rev 1.2   Jul 25 2002 10:57:10   KovitzP
 * Added C++ wrapper.
 * 
 *    Rev 1.1   Jun 18 2002 08:04:32   KovitzP
 * Fixed comment in header
 * 
 *    Rev 1.0   12 Mar 2002 14:36:10   kovitzp
 * Initial revision.
 * 
 * 
 * COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 * 		       CAMAS, WA
 **********************************************************************/
#ifndef SMA_STACKUTILS_H
#define SMA_STACKUTILS_H
#define MODE_USR 0x010
#define MODE_FIQ 0x011
#define MODE_IRQ 0x012
#define MODE_SVC 0x013
#define MODE_ABORT 0x017
#define MODE_UNDEF 0x01b
#define MODE_SYSTEM 0x01f
#define MODE_BITS 0x01f
#if defined(__cplusplus)
extern "C"
{
#endif
UNS_32 * SMA_set_stack(UNS_32 * new_sp, UNS_32 mode);
#if defined(__cplusplus)
}
#endif

#endif // SMA_STACKUTILS_H

⌨️ 快捷键说明

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