📄 _csl_cache.c
字号:
/* ============================================================================ * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied. * =========================================================================== *//** \file _csl_cache.c * * \brief This file defines the functions in the Cache driver. * * Date 22th March 2004 * Author Jamon Bowen * * Description * - The functions in this driver contian all of the necessary * functionallity the configure the (if avalible) L2, L1D, and L1P Cache. * Last Modified: 22th March 2004 * * Modifications 1: * - Jamon Bowen * - Created * - Date: 23th March 2004 * * Modifications 2: * - Ruchika Kharwar * - Created * - Date: 21st June 2004 * - Removed global variable, Cache (redundant), Register Layer modified to be * CSL 3.x Register layer as * specified in the scope. */#include <csl_cache.h>#include "_csl_cache.h"#pragma DATA_SECTION (_CSL_cachebusyState, ".bss:cslsys_section:cache");volatile CACHE_waitState _CSL_cachebusyState = CACHE_WAIT_NONE;#pragma DATA_SECTION (_CSL_cacheEmifState, ".bss:cslsys_section:cache");volatile CACHE_emifState _CSL_cacheEmifState = CACHE_EMIF_NONE;#pragma CODE_SECTION (_CSL_cacheApplyPatch, ".text:cslsys_section:cache");void _CSL_cacheApplyPatch(){ switch (_CSL_cacheEmifState) { case CACHE_EMIF_NONE: break; case CACHE_EMIF_A: CSL_CACHE_EMIFA_PATCH(); break; case CACHE_EMIF_B: CSL_CACHE_EMIFB_PATCH(); break; case CACHE_EMIF_AB: CSL_CACHE_EMIFA_PATCH(); CSL_CACHE_EMIFB_PATCH(); break; } _CSL_cacheEmifState = CACHE_EMIF_NONE;}#pragma CODE_SECTION (_CACHE_wait, ".text:cslsys_section:cache");void _CACHE_wait( CACHE_Wait wait){ if (wait == CACHE_WAITINTERNAL) CACHE_waitInternal(); else CACHE_wait();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -