]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained_IAR_Keil/libchip_samv7/include/samv7/system_sam.h
Final V8.2.1 release ready for tagging:
[freertos] / FreeRTOS / Demo / CORTEX_M7_SAMV71_Xplained_IAR_Keil / libchip_samv7 / include / samv7 / system_sam.h
1 /* ---------------------------------------------------------------------------- */\r
2 /*                  Atmel Microcontroller Software Support                      */\r
3 /*                       SAM Software Package License                           */\r
4 /* ---------------------------------------------------------------------------- */\r
5 /* Copyright (c) 2014, Atmel Corporation                                        */\r
6 /*                                                                              */\r
7 /* All rights reserved.                                                         */\r
8 /*                                                                              */\r
9 /* Redistribution and use in source and binary forms, with or without           */\r
10 /* modification, are permitted provided that the following condition is met:    */\r
11 /*                                                                              */\r
12 /* - Redistributions of source code must retain the above copyright notice,     */\r
13 /* this list of conditions and the disclaimer below.                            */\r
14 /*                                                                              */\r
15 /* Atmel's name may not be used to endorse or promote products derived from     */\r
16 /* this software without specific prior written permission.                     */\r
17 /*                                                                              */\r
18 /* DISCLAIMER:  THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR   */\r
19 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */\r
20 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE   */\r
21 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,      */\r
22 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */\r
23 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,  */\r
24 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF    */\r
25 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING         */\r
26 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */\r
27 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                           */\r
28 /* ---------------------------------------------------------------------------- */\r
29 \r
30 #ifndef SYSTEM_SAM_H_INCLUDED\r
31 #define SYSTEM_SAM_H_INCLUDED\r
32 \r
33 /* @cond 0 */\r
34 /**INDENT-OFF**/\r
35 #ifdef __cplusplus\r
36 extern "C" {\r
37 #endif\r
38 /**INDENT-ON**/\r
39 /* @endcond */\r
40 \r
41 #include <stdint.h>\r
42 \r
43 extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */\r
44 \r
45 /**\r
46  * @brief Setup the microcontroller system.\r
47  * Initialize the System and update the SystemCoreClock variable.\r
48  */\r
49 void SystemInit(void);\r
50 \r
51 /**\r
52  * @brief Updates the SystemCoreClock with current core Clock\r
53  * retrieved from cpu registers.\r
54  */\r
55 void SystemCoreClockUpdate(void);\r
56 \r
57 /**\r
58  * Initialize flash.\r
59  */\r
60 void system_init_flash(uint32_t dw_clk);\r
61 \r
62 /* @cond 0 */\r
63 /**INDENT-OFF**/\r
64 #ifdef __cplusplus\r
65 }\r
66 #endif\r
67 /**INDENT-ON**/\r
68 /* @endcond */\r
69 \r
70 #endif /* SYSTEM_SAM_H_INCLUDED */\r