From afe12bca23b106a18796bf6ed793ff1389bdddb2 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 19 Oct 2013 18:13:48 +0100 Subject: Fix IRQ priority issue to give working USB; and some cleanup. --- stm/storage.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'stm/storage.c') diff --git a/stm/storage.c b/stm/storage.c index 89dbd97c6..ce89bdf6f 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(); } -- cgit v1.2.3