blob: f9d23b75eae47414de52591f9eeea5491d2d2a16 [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 Welted1bd5c42019-05-17 16:38:30 +020024#include <hal_calendar.h>
Harald Welte361ed202019-02-24 21:15:39 +010025#include <hal_usart_sync.h>
Kévin Redon0c3533f2019-04-03 21:00:09 +020026#include <hal_usart_async.h>
27#include <hal_usart_async_rings.h>
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010028
Kévin Redon69b92d92019-01-24 16:39:20 +010029#include "hal_usb_device.h"
30
Harald Welted1bd5c42019-05-17 16:38:30 +020031extern struct calendar_descriptor CALENDAR_0;
Kévin Redon1f8ecef2019-01-31 13:36:12 +010032extern struct usart_async_descriptor SIM0;
33extern struct usart_async_descriptor SIM1;
34extern struct usart_async_descriptor SIM2;
35extern struct usart_async_descriptor SIM3;
36extern struct usart_async_descriptor SIM4;
37extern struct usart_async_descriptor SIM5;
38extern struct usart_async_descriptor SIM6;
Eric Wild22887032019-11-27 18:10:39 +010039#ifdef ENABLE_DBG_UART7
Kévin Redon0c3533f2019-04-03 21:00:09 +020040extern struct usart_async_rings_descriptor UART_debug;
Eric Wild22887032019-11-27 18:10:39 +010041#else
42extern struct usart_async_descriptor SIM7;
43#endif
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010044
Harald Welted1bd5c42019-05-17 16:38:30 +020045void CALENDAR_0_CLOCK_init(void);
46void CALENDAR_0_init(void);
47
Kévin Redon1f8ecef2019-01-31 13:36:12 +010048void SIM0_PORT_init(void);
49void SIM0_CLOCK_init(void);
50void SIM0_init(void);
51
52void SIM1_PORT_init(void);
53void SIM1_CLOCK_init(void);
54void SIM1_init(void);
55
56void SIM2_PORT_init(void);
57void SIM2_CLOCK_init(void);
58void SIM2_init(void);
59
60void SIM3_PORT_init(void);
61void SIM3_CLOCK_init(void);
62void SIM3_init(void);
63
64void SIM4_PORT_init(void);
65void SIM4_CLOCK_init(void);
66void SIM4_init(void);
67
68void SIM5_PORT_init(void);
69void SIM5_CLOCK_init(void);
70void SIM5_init(void);
71
72void SIM6_PORT_init(void);
73void SIM6_CLOCK_init(void);
74void SIM6_init(void);
75
Eric Wild22887032019-11-27 18:10:39 +010076void SIM7_PORT_init(void);
77void SIM7_CLOCK_init(void);
78void SIM7_init(void);
79
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010080void UART_debug_PORT_init(void);
81void UART_debug_CLOCK_init(void);
82void UART_debug_init(void);
83
Kévin Redon69b92d92019-01-24 16:39:20 +010084void USB_DEVICE_INSTANCE_CLOCK_init(void);
85void USB_DEVICE_INSTANCE_init(void);
86
87/**
88 * \brief Perform system initialization, initialize pins and clocks for
89 * peripherals
90 */
91void system_init(void);
92
93#ifdef __cplusplus
94}
95#endif
96#endif // DRIVER_INIT_INCLUDED