blob: d7bc6fe209a59271d925f32a7168f5cde3a358af [file] [log] [blame]
Kévin Redon69b92d92019-01-24 16:39:20 +01001/**
2 * \file
3 *
4 * \brief HAL initialization related functionality declaration.
5 *
6 * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
7 *
8 * \asf_license_start
9 *
10 * \page License
11 *
12 * Subject to your compliance with these terms, you may use Microchip
13 * software and any derivatives exclusively with Microchip products.
14 * It is your responsibility to comply with third party license terms applicable
15 * to your use of third party software (including open source software) that
16 * may accompany Microchip software.
17 *
18 * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES,
19 * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE,
20 * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY,
21 * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE
22 * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL
23 * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE
24 * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE
25 * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT
26 * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY
27 * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
28 * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
29 *
30 * \asf_license_stop
31 *
32 */
33
34#ifndef _HAL_INIT_H_INCLUDED
35#define _HAL_INIT_H_INCLUDED
36
37#include <hpl_init.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/**
44 * \addtogroup doc_driver_hal_helper_init Init Driver
45 *
46 *@{
47 */
48
49/**
50 * \brief Initialize the hardware abstraction layer
51 *
52 * This function calls the various initialization functions.
53 * Currently the following initialization functions are supported:
54 * - System clock initialization
55 */
56static inline void init_mcu(void)
57{
58 _init_chip();
59}
60
61/**
62 * \brief Retrieve the current driver version
63 *
64 * \return Current driver version.
65 */
66uint32_t init_get_version(void);
67
68/**@}*/
69#ifdef __cplusplus
70}
71#endif
72#endif /* _HAL_INIT_H_INCLUDED */