summaryrefslogtreecommitdiffstatshomepage
path: root/stm/storage.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-19 18:13:48 +0100
committerDamien <damien.p.george@gmail.com>2013-10-19 18:13:48 +0100
commitafe12bca23b106a18796bf6ed793ff1389bdddb2 (patch)
treec34020314b3b1ed7a6106a3582882460471ef1dc /stm/storage.c
parentfb42ec17bcf7508f66b8d8d0770b60c33be0d6ab (diff)
downloadmicropython-afe12bca23b106a18796bf6ed793ff1389bdddb2.tar.gz
micropython-afe12bca23b106a18796bf6ed793ff1389bdddb2.zip
Fix IRQ priority issue to give working USB; and some cleanup.
Diffstat (limited to 'stm/storage.c')
-rw-r--r--stm/storage.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/stm/storage.c b/stm/storage.c
index 89dbd97c6a..ce89bdf6fe 100644
--- a/stm/storage.c
+++ b/stm/storage.c
@@ -53,6 +53,14 @@ void storage_init() {
}
}
+uint32_t storage_get_block_size() {
+ return BLOCK_SIZE;
+}
+
+uint32_t storage_get_block_count() {
+ return FLASH_PART1_START_BLOCK + FLASH_PART1_NUM_BLOCKS;
+}
+
void storage_flush() {
cache_flush();
}