blob: 6c4f3a1fbdc0f02af69f4bd9b92151f9cfe5830f [file] [log] [blame]
Kévin Redon69b92d92019-01-24 16:39:20 +01001/*
2 * Code generated from Atmel Start.
3 *
4 * This file will be overwritten when reconfiguring your Atmel Start project.
5 * Please copy examples or other code you want to keep to a separate file
6 * to avoid losing it when reconfiguring.
7 */
8#ifndef DRIVER_INIT_INCLUDED
9#define DRIVER_INIT_INCLUDED
10
11#include "atmel_start_pins.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <hal_atomic.h>
18#include <hal_delay.h>
19#include <hal_gpio.h>
20#include <hal_init.h>
21#include <hal_io.h>
22#include <hal_sleep.h>
23
Harald Welte361ed202019-02-24 21:15:39 +010024#include <hal_usart_sync.h>
Kévin Redon0c3533f2019-04-03 21:00:09 +020025#include <hal_usart_async.h>
26#include <hal_usart_async_rings.h>
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010027
Kévin Redon69b92d92019-01-24 16:39:20 +010028#include "hal_usb_device.h"
29
Kévin Redon1f8ecef2019-01-31 13:36:12 +010030extern struct usart_async_descriptor SIM0;
31extern struct usart_async_descriptor SIM1;
32extern struct usart_async_descriptor SIM2;
33extern struct usart_async_descriptor SIM3;
34extern struct usart_async_descriptor SIM4;
35extern struct usart_async_descriptor SIM5;
36extern struct usart_async_descriptor SIM6;
Kévin Redon0c3533f2019-04-03 21:00:09 +020037extern struct usart_async_rings_descriptor UART_debug;
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010038
Kévin Redon1f8ecef2019-01-31 13:36:12 +010039void SIM0_PORT_init(void);
40void SIM0_CLOCK_init(void);
41void SIM0_init(void);
42
43void SIM1_PORT_init(void);
44void SIM1_CLOCK_init(void);
45void SIM1_init(void);
46
47void SIM2_PORT_init(void);
48void SIM2_CLOCK_init(void);
49void SIM2_init(void);
50
51void SIM3_PORT_init(void);
52void SIM3_CLOCK_init(void);
53void SIM3_init(void);
54
55void SIM4_PORT_init(void);
56void SIM4_CLOCK_init(void);
57void SIM4_init(void);
58
59void SIM5_PORT_init(void);
60void SIM5_CLOCK_init(void);
61void SIM5_init(void);
62
63void SIM6_PORT_init(void);
64void SIM6_CLOCK_init(void);
65void SIM6_init(void);
66
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010067void UART_debug_PORT_init(void);
68void UART_debug_CLOCK_init(void);
69void UART_debug_init(void);
70
Kévin Redon69b92d92019-01-24 16:39:20 +010071void USB_DEVICE_INSTANCE_CLOCK_init(void);
72void USB_DEVICE_INSTANCE_init(void);
73
74/**
75 * \brief Perform system initialization, initialize pins and clocks for
76 * peripherals
77 */
78void system_init(void);
79
80#ifdef __cplusplus
81}
82#endif
83#endif // DRIVER_INIT_INCLUDED