cache_enable_data. STMicroelectronics OS20
تبلیغات
تبلیغات
16.2 OS20 function descriptions 16 Alphabetical list of functions
cache_enable_data
Enable the data cache
Synopsis
#include <cache.h> int cache_enable_data( void );
Arguments
None
Results
Returns 0 on success, -1 if an error occurs.
Errors
Returns -1 if the cache registers have been locked or if the data cache is already enabled.
Description
This function enables the data cache by writing to the ENABLEDCACHE register.
The data cache should be configured before it is enabled, by making calls to cache_config_data .
Most ST20 caches must be invalidated prior to being enabled; on such processors, cache_enable_data() will automatically invalidate the cache before enabling it, to guard against data loss. As such, it is not necessary to call cache_invalidate_data() in order to enable the cache.
Callable from
A task, interrupt service routine or a high priority process (on an ST20-C2).
See also
123
ADCS 7473749D
دانلود
تبلیغات