📄 sma_stackutils.h
字号:
/**********************************************************************
* $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -