diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-19 18:13:48 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-19 18:13:48 +0100 |
commit | afe12bca23b106a18796bf6ed793ff1389bdddb2 (patch) | |
tree | c34020314b3b1ed7a6106a3582882460471ef1dc /stm/storage.c | |
parent | fb42ec17bcf7508f66b8d8d0770b60c33be0d6ab (diff) | |
download | micropython-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.c | 8 |
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(); } |