Switch from GPLv2 to GPLv2+
[fw/altos] / src / cc1111 / ao_aes.c
index d50fecfb997afacdbedc814a86a7ad3d70009fae..e845a928ad0deac3de2b7bf39d326ae0628f6ee0 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -135,7 +136,11 @@ ao_aes_run(__xdata uint8_t *in,
 void
 ao_aes_init(void)
 {
+#if DMA_SHARE_AES_RADIO
+       ao_aes_dma_in = ao_radio_dma;
+#else
        ao_aes_dma_in = ao_dma_alloc(&ao_aes_dma_in_done);
+#endif
        ao_aes_dma_out = ao_dma_alloc(&ao_aes_dma_out_done);
        S0CON = 0;
        ENCIE = 1;