otherwise, telefire doesn't have enough DMA channels.
Signed-off-by: Keith Packard <keithp@keithp.com>
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;
}
#define HAS_ACCEL_REF 0
#define SPI_CS_ON_P1 1
#define HAS_AES 1
+#define DMA_SHARE_AES_RADIO 1
#define SPI_CS_PORT P1
#define SPI_CS_SEL P1SEL
ao_storage_init();
ao_usb_init();
ao_radio_init();
-// ao_aes_init();
+ ao_aes_init();
ao_pad_init();
ao_config_init();
ao_start_scheduler();