blob: fd566ddc8f9778beaa6f0abac901c08cba1946c3 [file] [log] [blame]
Kévin Redon69b92d92019-01-24 16:39:20 +01001#include <atmel_start.h>
2
Kévin Redonc94e0fc2019-03-07 19:15:29 +01003/** Memory to memory DMA callback */
4static void M2M_DMA_complete_cb(void)
5{
6 dma_m2m_complete_flag = true;
7}
8
Kévin Redon69b92d92019-01-24 16:39:20 +01009/**
10 * Initializes MCU, drivers and middleware in the project
11 **/
12void atmel_start_init(void)
13{
14 system_init();
15 usb_init();
Kévin Redonc94e0fc2019-03-07 19:15:29 +010016 dma_memory_init();
17 dma_memory_register_callback(DMA_MEMORY_COMPLETE_CB, M2M_DMA_complete_cb);
Harald Welte361ed202019-02-24 21:15:39 +010018 stdio_redirect_init();
Kévin Redon69b92d92019-01-24 16:39:20 +010019}