Skip to content

Commit 5fc9c9e

Browse files
committed
Add ScopedRomWriteLock example
1 parent 5d56a7c commit 5fc9c9e

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 ScopedRomWriteLock class for enabling writing to ROM.
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+
ScopedRomWriteLock make_rom_writable;
7+
8+
//custom_flash_programming();
9+
}

0 commit comments

Comments
 (0)