Skip to content

Commit f05737b

Browse files
committed
Add ScopedRamExecutionLock example
1 parent e3627b7 commit f05737b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## ScopedRamExecutionLock example
2+
3+
The example shows how to use ScopedRamExecutionLock class for enabling execution from RAM.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "mbed.h"
2+
3+
int main()
4+
{
5+
// Enable execution from RAM while in main
6+
ScopedRamExecutionLock make_ram_executable;
7+
8+
//some_function_in_ram();
9+
}

0 commit comments

Comments
 (0)