projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a705b6
)
altos: Set SPI fill value each time it is used.
author
Keith Packard
<keithp@keithp.com>
Sun, 13 Nov 2011 02:32:49 +0000
(18:32 -0800)
committer
Keith Packard
<keithp@keithp.com>
Sun, 13 Nov 2011 02:36:11 +0000
(18:36 -0800)
This ensures that the final MOSI pin value will be high after a
receive is finished.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_spi.c
patch
|
blob
|
history
diff --git
a/src/cc1111/ao_spi.c
b/src/cc1111/ao_spi.c
index fbe613c759762bc4766f8ab47e9c56362fcc2d88..1fa8e1282fe0374b2d6f745b366ac2b8d80bb763 100644
(file)
--- a/
src/cc1111/ao_spi.c
+++ b/
src/cc1111/ao_spi.c
@@
-28,7
+28,7
@@
__xdata uint8_t ao_spi_dma_out_done;
uint8_t ao_spi_dma_out_id;
uint8_t ao_spi_dma_in_id;
-static __xdata uint8_t ao_spi_const
= 0xff
;
+static __xdata uint8_t ao_spi_const;
/* Send bytes over SPI.
*
@@
-89,6
+89,8
@@
ao_spi_recv(void __xdata *block, uint16_t len) __reentrant
DMA_CFG1_DESTINC_1 |
DMA_CFG1_PRIORITY_NORMAL);
+ ao_spi_const = 0xff;
+
ao_dma_set_transfer(ao_spi_dma_out_id,
&ao_spi_const,
&U0DBUFXADDR,