Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 1 | /* |
| 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 |
| 14 | extern "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 Welte | d1bd5c4 | 2019-05-17 16:38:30 +0200 | [diff] [blame] | 24 | #include <hal_calendar.h> |
Harald Welte | 361ed20 | 2019-02-24 21:15:39 +0100 | [diff] [blame] | 25 | #include <hal_usart_sync.h> |
Kévin Redon | 0c3533f | 2019-04-03 21:00:09 +0200 | [diff] [blame] | 26 | #include <hal_usart_async.h> |
| 27 | #include <hal_usart_async_rings.h> |
Kévin Redon | 4cd3f7d | 2019-01-24 17:57:13 +0100 | [diff] [blame] | 28 | |
Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 29 | #include "hal_usb_device.h" |
| 30 | |
Harald Welte | d1bd5c4 | 2019-05-17 16:38:30 +0200 | [diff] [blame] | 31 | extern struct calendar_descriptor CALENDAR_0; |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 32 | extern struct usart_async_descriptor SIM0; |
| 33 | extern struct usart_async_descriptor SIM1; |
| 34 | extern struct usart_async_descriptor SIM2; |
| 35 | extern struct usart_async_descriptor SIM3; |
| 36 | extern struct usart_async_descriptor SIM4; |
| 37 | extern struct usart_async_descriptor SIM5; |
| 38 | extern struct usart_async_descriptor SIM6; |
Kévin Redon | 0c3533f | 2019-04-03 21:00:09 +0200 | [diff] [blame] | 39 | extern struct usart_async_rings_descriptor UART_debug; |
Kévin Redon | 4cd3f7d | 2019-01-24 17:57:13 +0100 | [diff] [blame] | 40 | |
Harald Welte | d1bd5c4 | 2019-05-17 16:38:30 +0200 | [diff] [blame] | 41 | void CALENDAR_0_CLOCK_init(void); |
| 42 | void CALENDAR_0_init(void); |
| 43 | |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 44 | void SIM0_PORT_init(void); |
| 45 | void SIM0_CLOCK_init(void); |
| 46 | void SIM0_init(void); |
| 47 | |
| 48 | void SIM1_PORT_init(void); |
| 49 | void SIM1_CLOCK_init(void); |
| 50 | void SIM1_init(void); |
| 51 | |
| 52 | void SIM2_PORT_init(void); |
| 53 | void SIM2_CLOCK_init(void); |
| 54 | void SIM2_init(void); |
| 55 | |
| 56 | void SIM3_PORT_init(void); |
| 57 | void SIM3_CLOCK_init(void); |
| 58 | void SIM3_init(void); |
| 59 | |
| 60 | void SIM4_PORT_init(void); |
| 61 | void SIM4_CLOCK_init(void); |
| 62 | void SIM4_init(void); |
| 63 | |
| 64 | void SIM5_PORT_init(void); |
| 65 | void SIM5_CLOCK_init(void); |
| 66 | void SIM5_init(void); |
| 67 | |
| 68 | void SIM6_PORT_init(void); |
| 69 | void SIM6_CLOCK_init(void); |
| 70 | void SIM6_init(void); |
| 71 | |
Kévin Redon | 4cd3f7d | 2019-01-24 17:57:13 +0100 | [diff] [blame] | 72 | void UART_debug_PORT_init(void); |
| 73 | void UART_debug_CLOCK_init(void); |
| 74 | void UART_debug_init(void); |
| 75 | |
Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 76 | void USB_DEVICE_INSTANCE_CLOCK_init(void); |
| 77 | void USB_DEVICE_INSTANCE_init(void); |
| 78 | |
| 79 | /** |
| 80 | * \brief Perform system initialization, initialize pins and clocks for |
| 81 | * peripherals |
| 82 | */ |
| 83 | void system_init(void); |
| 84 | |
| 85 | #ifdef __cplusplus |
| 86 | } |
| 87 | #endif |
| 88 | #endif // DRIVER_INIT_INCLUDED |