aboutsummaryrefslogtreecommitdiff
path: root/stmhal/storage.h
diff options
context:
space:
mode:
authorDamien George2015-11-24 16:57:13 +0000
committerDamien George2015-11-24 16:57:13 +0000
commit65888e2006ad5aac6d613550aecea9956562eb59 (patch)
tree23a9d25a08029ca153018c3415a12a4cb1307bc2 /stmhal/storage.h
parent36bd10779c3721d1b4b66c549023fd4a33f4db58 (diff)
stmhal: Process storage idle tick handler in different slot to DMA.
Diffstat (limited to 'stmhal/storage.h')
-rw-r--r--stmhal/storage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/storage.h b/stmhal/storage.h
index a2c56b765..4ff7abbe1 100644
--- a/stmhal/storage.h
+++ b/stmhal/storage.h
@@ -27,7 +27,7 @@
#define FLASH_BLOCK_SIZE (512)
#define STORAGE_SYSTICK_MASK (0x1ff) // 512ms
-#define STORAGE_IDLE_TICK(tick) (((tick) & STORAGE_SYSTICK_MASK) == 0)
+#define STORAGE_IDLE_TICK(tick) (((tick) & STORAGE_SYSTICK_MASK) == 2)
void storage_init(void);
uint32_t storage_get_block_size(void);