/*
 * Code generated from Atmel Start.
 *
 * This file will be overwritten when reconfiguring your Atmel Start project.
 * Please copy examples or other code you want to keep to a separate file
 * to avoid losing it when reconfiguring.
 */
#ifndef DRIVER_INIT_INCLUDED
#define DRIVER_INIT_INCLUDED

#include "atmel_start_pins.h"

#ifdef __cplusplus
extern "C" {
#endif

#include <hal_atomic.h>
#include <hal_delay.h>
#include <hal_gpio.h>
#include <hal_init.h>
#include <hal_io.h>
#include <hal_sleep.h>

#include <hal_ext_irq.h>

#include <hal_evsys.h>

#include <hal_qspi_dma.h>

#include <hal_spi_m_dma.h>

#include <hal_spi_m_dma.h>

#include <hal_spi_m_dma.h>
#include <tc_lite.h>

extern struct qspi_dma_descriptor ECAT_QSPI;

extern struct spi_m_dma_descriptor SPI_M2;

extern struct spi_m_dma_descriptor SPI_M1;

extern struct spi_m_dma_descriptor SPI_M3;

void ECAT_QSPI_PORT_init(void);
void ECAT_QSPI_CLOCK_init(void);
void ECAT_QSPI_init(void);

void SPI_M2_PORT_init(void);
void SPI_M2_CLOCK_init(void);
void SPI_M2_init(void);

void SPI_M1_PORT_init(void);
void SPI_M1_CLOCK_init(void);
void SPI_M1_init(void);

void SPI_M3_PORT_init(void);
void SPI_M3_CLOCK_init(void);
void SPI_M3_init(void);

void TIMER_1_CLOCK_init(void);

int8_t TIMER_1_init(void);

/**
 * \brief Perform system initialization, initialize pins and clocks for
 * peripherals
 */
void system_init(void);

#ifdef __cplusplus
}
#endif
#endif // DRIVER_INIT_INCLUDED
