projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
80e20b2
)
cc1111: Wait for internal flash write to complete
author
Keith Packard
<keithp@keithp.com>
Mon, 18 Aug 2014 03:57:16 +0000
(20:57 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 18 Aug 2014 03:57:16 +0000
(20:57 -0700)
This ensures that we don't try to start another write too soon.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_intflash.c
patch
|
blob
|
history
diff --git
a/src/cc1111/ao_intflash.c
b/src/cc1111/ao_intflash.c
index 632e2a850caa17e8b148717b4200caf08c6aaa54..eb3535c6933f4b42797a6ee0a5932858159a80ec 100644
(file)
--- a/
src/cc1111/ao_intflash.c
+++ b/
src/cc1111/ao_intflash.c
@@
-129,6
+129,8
@@
ao_intflash_write_aligned(uint16_t pos, __xdata void *d, uint16_t len) __reentra
nop
_endasm;
}
+ __critical while (!ao_intflash_dma_done)
+ ao_sleep(&ao_intflash_dma_done);
}
static void