X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcc1111%2Fao_aes.c;h=e845a928ad0deac3de2b7bf39d326ae0628f6ee0;hb=a487d2fcba57141f6b083d5612c76bac5ad1ac7c;hp=d50fecfb997afacdbedc814a86a7ad3d70009fae;hpb=47a9925f16f6a13b173c49d3873d91fc7cf6d46e;p=fw%2Faltos diff --git a/src/cc1111/ao_aes.c b/src/cc1111/ao_aes.c index d50fecfb..e845a928 100644 --- a/src/cc1111/ao_aes.c +++ b/src/cc1111/ao_aes.c @@ -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;