]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M4F_ATSAM4E_Atmel_Studio/src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.h
Update copyright date ready for tagging V10.1.0.
[freertos] / FreeRTOS / Demo / CORTEX_M4F_ATSAM4E_Atmel_Studio / src / ASF / sam / utils / cmsis / sam4e / source / templates / system_sam4e.h
1 /**\r
2  * \file\r
3  *\r
4  * \brief Provides the low-level initialization functions that called\r
5  * on chip startup.\r
6  *\r
7  * Copyright (c) 2011 - 2012 Atmel Corporation. All rights reserved.\r
8  *\r
9  * \asf_license_start\r
10  *\r
11  * \page License\r
12  *\r
13  * Redistribution and use in source and binary forms, with or without\r
14  * modification, are permitted provided that the following conditions are met:\r
15  *\r
16  * 1. Redistributions of source code must retain the above copyright notice,\r
17  *    this list of conditions and the following disclaimer.\r
18  *\r
19  * 2. Redistributions in binary form must reproduce the above copyright notice,\r
20  *    this list of conditions and the following disclaimer in the documentation\r
21  *    and/or other materials provided with the distribution.\r
22  *\r
23  * 3. The name of Atmel may not be used to endorse or promote products derived\r
24  *    from this software without specific prior written permission.\r
25  *\r
26  * 4. This software may only be redistributed and used in connection with an\r
27  *    Atmel microcontroller product.\r
28  *\r
29  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED\r
30  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
31  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
32  * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR\r
33  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
34  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
35  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
36  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\r
37  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\r
38  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
39  * POSSIBILITY OF SUCH DAMAGE.\r
40  *\r
41  * \asf_license_stop\r
42  *\r
43  */\r
44 \r
45 #ifndef SYSTEM_SAM4E_H_INCLUDED\r
46 #define SYSTEM_SAM4E_H_INCLUDED\r
47 \r
48 /* @cond 0 */\r
49 /**INDENT-OFF**/\r
50 #ifdef __cplusplus\r
51 extern "C" {\r
52 #endif\r
53 /**INDENT-ON**/\r
54 /* @endcond */\r
55 \r
56 #include <stdint.h>\r
57 \r
58 extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */\r
59 \r
60 /**\r
61  * @brief Setup the microcontroller system.\r
62  * Initialize the System and update the SystemCoreClock variable.\r
63  */\r
64 void SystemInit(void);\r
65 \r
66 /**\r
67  * @brief Updates the SystemCoreClock with current core Clock\r
68  * retrieved from cpu registers.\r
69  */\r
70 void SystemCoreClockUpdate(void);\r
71 \r
72 /**\r
73  * Initialize flash.\r
74  */\r
75 void system_init_flash(uint32_t dw_clk);\r
76 \r
77 /* @cond 0 */\r
78 /**INDENT-OFF**/\r
79 #ifdef __cplusplus\r
80 }\r
81 #endif\r
82 /**INDENT-ON**/\r
83 /* @endcond */\r
84 \r
85 #endif /* SYSTEM_SAM4E_H_INCLUDED */\r