*
* 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
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;
+ ao_aes_dma_in = ao_radio_dma;
#else
- ao_aes_dma_out = ao_dma_alloc(&ao_aes_dma_out_done);
+ 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;
}