summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/flash.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-17 13:31:35 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-17 13:31:35 +0000
commit9e5ea4d768da3273b6d060cceffcc858e1c4827d (patch)
treeca4ca9e8398e86af2d39a44e6f91f0fed08941a7 /stmhal/flash.h
parent8a9a31e57b48f948dd8c0cf23a91e08848af2462 (diff)
downloadmicropython-9e5ea4d768da3273b6d060cceffcc858e1c4827d.tar.gz
micropython-9e5ea4d768da3273b6d060cceffcc858e1c4827d.zip
stmhal: Add flash write support and flash storage driver.
Diffstat (limited to 'stmhal/flash.h')
-rw-r--r--stmhal/flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/flash.h b/stmhal/flash.h
new file mode 100644
index 0000000000..33d31df7a6
--- /dev/null
+++ b/stmhal/flash.h
@@ -0,0 +1,2 @@
+uint32_t flash_get_sector_info(uint32_t addr, uint32_t *start_addr, uint32_t *size);
+void flash_write(uint32_t flash_dest, const uint32_t *src, uint32_t num_word32);