blob: d809db8c931f453251e48335a7d96492d303b0e7 [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
Kévin Redonccbed0b2019-01-24 18:30:26 +010024#include <hal_usart_async.h>
Kévin Redon1f8ecef2019-01-31 13:36:12 +010025#include <hal_usart_async.h>
26#include <hal_usart_async.h>
27#include <hal_usart_async.h>
28#include <hal_usart_async.h>
29#include <hal_usart_async.h>
30#include <hal_usart_async.h>
Harald Welte361ed202019-02-24 21:15:39 +010031
32#include <hal_usart_sync.h>
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010033
Kévin Redon69b92d92019-01-24 16:39:20 +010034#include "hal_usb_device.h"
35
Kévin Redon1f8ecef2019-01-31 13:36:12 +010036extern struct usart_async_descriptor SIM0;
37extern struct usart_async_descriptor SIM1;
38extern struct usart_async_descriptor SIM2;
39extern struct usart_async_descriptor SIM3;
40extern struct usart_async_descriptor SIM4;
41extern struct usart_async_descriptor SIM5;
42extern struct usart_async_descriptor SIM6;
Harald Welte361ed202019-02-24 21:15:39 +010043
44extern struct usart_sync_descriptor UART_debug;
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010045
Kévin Redon1f8ecef2019-01-31 13:36:12 +010046void SIM0_PORT_init(void);
47void SIM0_CLOCK_init(void);
48void SIM0_init(void);
49
50void SIM1_PORT_init(void);
51void SIM1_CLOCK_init(void);
52void SIM1_init(void);
53
54void SIM2_PORT_init(void);
55void SIM2_CLOCK_init(void);
56void SIM2_init(void);
57
58void SIM3_PORT_init(void);
59void SIM3_CLOCK_init(void);
60void SIM3_init(void);
61
62void SIM4_PORT_init(void);
63void SIM4_CLOCK_init(void);
64void SIM4_init(void);
65
66void SIM5_PORT_init(void);
67void SIM5_CLOCK_init(void);
68void SIM5_init(void);
69
70void SIM6_PORT_init(void);
71void SIM6_CLOCK_init(void);
72void SIM6_init(void);
73
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010074void UART_debug_PORT_init(void);
75void UART_debug_CLOCK_init(void);
76void UART_debug_init(void);
77
Kévin Redon69b92d92019-01-24 16:39:20 +010078void USB_DEVICE_INSTANCE_CLOCK_init(void);
79void USB_DEVICE_INSTANCE_init(void);
80
81/**
82 * \brief Perform system initialization, initialize pins and clocks for
83 * peripherals
84 */
85void system_init(void);
86
87#ifdef __cplusplus
88}
89#endif
90#endif // DRIVER_INIT_INCLUDED