📄 accesscp15.h
字号:
//=====================================================================
// TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
// Property of Texas Instruments -- For Unrestricted Internal Use Only
// Unauthorized reproduction and/or distribution is strictly prohibited
// This product is protected under copyright law and trade secret law as
// an unpublished work.Created 2001,(C) Copyright 2001 Texas Instruments.
// All rights reserved.
//=====================================================================
#ifndef _ACCESS_H
#define _ACCESS_H
#define P_bit 0x10000 /* Prefetch buffer disable */
/*
-----------------------------------------------------------------------------
NAME : ARM_PRE_OFF -
DESCRIPTION : Disable PreFetch Buffer -
PARAMETERS : None. -
RETURN VALUE: None. -
LIMITATIONS : None. -
-----------------------------------------------------------------------------
*/
#define ARM_PRE_OFF \
{ \
int tmp; \
\
tmp = ARM_READ_REG15_C0(); \
tmp |= P_bit; \
ARM_WRITE_REG15_C0(tmp); \
}
/*
-----------------------------------------------------------------------------
NAME : ARM_PRE_ON -
DESCRIPTION : Enable PreFetch Buffer -
PARAMETERS : None. -
RETURN VALUE: None. -
LIMITATIONS : None. -
-----------------------------------------------------------------------------
*/
#define ARM_PRE_ON \
{ \
int tmp; \
\
tmp = ARM_READ_REG15_C0(); \
tmp &= ~P_bit; \
ARM_WRITE_REG15_C0(tmp); \
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -