blob: de5e441de1d968565c112debf2a671e80864af7e [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;
Kévin Redon0c3533f2019-04-03 21:00:09 +020039extern struct usart_async_rings_descriptor UART_debug;
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010040
Harald Welted1bd5c42019-05-17 16:38:30 +020041void CALENDAR_0_CLOCK_init(void);
42void CALENDAR_0_init(void);
43
Kévin Redon1f8ecef2019-01-31 13:36:12 +010044void SIM0_PORT_init(void);
45void SIM0_CLOCK_init(void);
46void SIM0_init(void);
47
48void SIM1_PORT_init(void);
49void SIM1_CLOCK_init(void);
50void SIM1_init(void);
51
52void SIM2_PORT_init(void);
53void SIM2_CLOCK_init(void);
54void SIM2_init(void);
55
56void SIM3_PORT_init(void);
57void SIM3_CLOCK_init(void);
58void SIM3_init(void);
59
60void SIM4_PORT_init(void);
61void SIM4_CLOCK_init(void);
62void SIM4_init(void);
63
64void SIM5_PORT_init(void);
65void SIM5_CLOCK_init(void);
66void SIM5_init(void);
67
68void SIM6_PORT_init(void);
69void SIM6_CLOCK_init(void);
70void SIM6_init(void);
71
Kévin Redon4cd3f7d2019-01-24 17:57:13 +010072void UART_debug_PORT_init(void);
73void UART_debug_CLOCK_init(void);
74void UART_debug_init(void);
75
Kévin Redon69b92d92019-01-24 16:39:20 +010076void USB_DEVICE_INSTANCE_CLOCK_init(void);
77void USB_DEVICE_INSTANCE_init(void);
78
79/**
80 * \brief Perform system initialization, initialize pins and clocks for
81 * peripherals
82 */
83void system_init(void);
84
85#ifdef __cplusplus
86}
87#endif
88#endif // DRIVER_INIT_INCLUDED