mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
ScopedRamExecutionLock Class Reference
[Platform]
RAII object for disabling, then restoring RAM execute never mode Usage: More...
#include <ScopedRamExecutionLock.h>
Inherits NonCopyable< ScopedRamExecutionLock >, and NonCopyable< ScopedRamExecutionLock >.
Public Member Functions | |
ScopedRamExecutionLock () | |
Allow execution from RAM. | |
~ScopedRamExecutionLock () | |
Restore previous execution from RAM settings. | |
ScopedRamExecutionLock () | |
Allow execution from RAM. | |
~ScopedRamExecutionLock () | |
Restore previous execution from RAM settings. | |
Private Member Functions | |
MBED_DEPRECATED ("Invalid copy construction of a NonCopyable resource.") NonCopyable(const NonCopyable &) | |
NonCopyable copy constructor. | |
MBED_DEPRECATED ("Invalid copy assignment of a NonCopyable resource.") NonCopyable &operator | |
NonCopyable copy assignment operator. | |
MBED_DEPRECATED ("Invalid copy construction of a NonCopyable resource.") NonCopyable(const NonCopyable &) | |
NonCopyable copy constructor. | |
MBED_DEPRECATED ("Invalid copy assignment of a NonCopyable resource.") NonCopyable &operator | |
NonCopyable copy assignment operator. |
Detailed Description
RAII object for disabling, then restoring RAM execute never mode Usage:
void f() { // some code here { ScopedRamExecutionLock make_ram_executable; // Code in this block is allowed to call functions in RAM } // Execution from RAM is no longer allowed }
Definition at line 41 of file cmsis/BUILD/mbed/platform/ScopedRamExecutionLock.h.
Constructor & Destructor Documentation
Allow execution from RAM.
Increment the execute never lock to ensure code can be executed from RAM. This class uses RAII to allow execution from ram while it is in scope.
Definition at line 51 of file cmsis/BUILD/mbed/platform/ScopedRamExecutionLock.h.
Restore previous execution from RAM settings.
Decrement the execute never lock to return execute from RAM to its prior state.
Definition at line 62 of file cmsis/BUILD/mbed/platform/ScopedRamExecutionLock.h.
Allow execution from RAM.
Increment the execute never lock to ensure code can be executed from RAM. This class uses RAII to allow execution from ram while it is in scope.
Definition at line 51 of file platform/ScopedRamExecutionLock.h.
Restore previous execution from RAM settings.
Decrement the execute never lock to return execute from RAM to its prior state.
Definition at line 62 of file platform/ScopedRamExecutionLock.h.
Generated on Tue Jul 12 2022 20:41:18 by 1.7.2