summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_aes.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-26 09:43:34 -0700
committerKeith Packard <keithp@keithp.com>2012-08-26 09:43:34 -0700
commit89f1a685a02c7808cf03853aa9a5ee50c6baf49e (patch)
treed05c8dd8ee31c4b5c8ab873336bc632d5adc79cd /src/cc1111/ao_aes.c
parent7ecb429fe4682faf209452b1738ff3c8096fc5d5 (diff)
altos: Allow sharing of radio DMA with aes engine
otherwise, telefire doesn't have enough DMA channels. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_aes.c')
-rw-r--r--src/cc1111/ao_aes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cc1111/ao_aes.c b/src/cc1111/ao_aes.c
index d50fecfb..0e32abf6 100644
--- a/src/cc1111/ao_aes.c
+++ b/src/cc1111/ao_aes.c
@@ -136,7 +136,11 @@ void
ao_aes_init(void)
{
ao_aes_dma_in = ao_dma_alloc(&ao_aes_dma_in_done);
+#if DMA_SHARE_AES_RADIO
+ ao_aes_dma_out = ao_radio_dma;
+#else
ao_aes_dma_out = ao_dma_alloc(&ao_aes_dma_out_done);
+#endif
S0CON = 0;
ENCIE = 1;
}