projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make configurable the i2s word size to play, using cfg macros.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
flash_stm32.c
diff --git
a/bertos/cpu/cortex-m3/drv/flash_stm32.c
b/bertos/cpu/cortex-m3/drv/flash_stm32.c
index 816cdd58f94096f459a240f6a18f386cdc665328..d92e91420cbb67bd5ce3171e76679c03d11ac305 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/flash_stm32.c
+++ b/
bertos/cpu/cortex-m3/drv/flash_stm32.c
@@
-67,6
+67,7
@@
static bool flash_wait(struct KBlock *blk)
ticks_t start = timer_clock();
while (true)
{
+ cpu_relax();
if (!(EMB_FLASH->SR & FLASH_FLAG_BSY))
break;
@@
-90,8
+91,6
@@
static bool flash_wait(struct KBlock *blk)
LOG_ERR("Timeout..\n");
return false;
}
-
- cpu_relax();
}
return true;