cache_invalidate_data. STMicroelectronics OS20
जाहिरात
जाहिरात
OS20 User Manual 16.2 OS20 function descriptions
cache_invalidate_data
Invalidate the data cache
Synopsis
#include <cache.h> int cache_invalidate_data( void* reserved1, void* reserved2 );
Arguments void *reserved1 void *reserved2
Reserved for future use (must be NULL )
Reserved for future use (must be NULL )
Results
Returns 0 on success, -1 if an error occurs.
Errors
Returns -1 if the arguments are not NULL or if the data cache is not enabled.
Description
This function flushes and invalidates the data cache by writing to the INVALIDATEDCACHE register bit. The entire data cache is marked invalid. If not used correctly this causes data loss. In particular the return address stored when this function is called is destroyed if the workspace occupies cacheable memory.
Note: Any accesses to cacheable memory are blocked until the flushing and invalidation have completed.
Callable from
A task, interrupt service routine or a high priority process (on an ST20-C2).
Example cache_invalidate_data(NULL, NULL);
See also
128
ADCS 7473749D
डाउनलोड
जाहिरात